Skip to main content

bg-yellow-600

Tailwind Yellow 600

#CA8A04·Yellow family·Shade 600

Color Values

HEX
#CA8A04
RGB
rgb(202, 138, 4)
HSL
hsl(41, 96%, 40%)
OKLCH
oklch(0.681 0.142 76)
CMYK
cmyk(0%, 32%, 98%, 21%)
CSS Variable
var(--color-yellow-600)
Tailwind Class
bg-yellow-600

Accessibility Score

60/100

Good

Based on WCAG 2.1 contrast ratios against white and black backgrounds.

On White

2.94:1

Fail

On Black

7.15:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-yellow-600

Text

text-yellow-600

Border

border-yellow-600

Ring

ring-yellow-600

Outline

outline-yellow-600

Fill

fill-yellow-600

Stroke

stroke-yellow-600

From (gradient)

from-yellow-600

Via (gradient)

via-yellow-600

To (gradient)

to-yellow-600

Placeholder

placeholder-yellow-600

Caret

caret-yellow-600

Accent

accent-yellow-600

Decoration

decoration-yellow-600

Shadow Color

shadow-yellow-600

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'yellow-600': '#ca8a04', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #CA8A04;

/* RGB */
background-color: rgb(202, 138, 4);

/* HSL */
background-color: hsl(41, 96%, 40%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.681 0.142 76);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-yellow-600);

/* Gradient example */
background: linear-gradient(135deg, #fefce8 0%, #a16207 100%);

OKLCH — Modern Color Space

Lightness (L)

0.681

68% perceived brightness

Chroma (C)

0.142

Color intensity / saturation

Hue (H)

76°

Angle on perceptual hue wheel

oklch(0.681 0.142 76)

OKLCH is a perceptually uniform color space in CSS Color Level 4. Unlike HSL, equal steps in L produce equal perceived lightness changes — making it ideal for building accessible, harmonious design system scales.

Design Recommendations

Accessible primary action

Shade 600 of the Yellow palette

Recommended Uses

  • Primary buttons on white (passes AA)
  • Active state fills
  • Bold text links
  • Form borders on focus
  • Strong icon fills

Avoid

Text on dark backgrounds — may fall below required contrast.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #CA8A04

Frequently Asked Questions

What is the hex code for Tailwind Yellow 600?
Tailwind Yellow 600 has the hex code #CA8A04. Its RGB value is rgb(202, 138, 4) and its HSL value is hsl(41, 96%, 40%).
What Tailwind utility classes use Yellow 600?
Use bg-yellow-600 for backgrounds, text-yellow-600 for text color, border-yellow-600 for borders, and ring-yellow-600 for focus rings. In Tailwind v4 the CSS variable var(--color-yellow-600) is available natively.
Is Tailwind Yellow 600 WCAG accessible?
Tailwind Yellow 600 achieves a 2.94:1 contrast ratio on white (Fail) and 7.15:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Yellow 600?
Tailwind Yellow 600 in OKLCH is oklch(0.681 0.142 76) — lightness 0.681, chroma 0.142, hue 76°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Yellow 600 used for?
At shade 600, Tailwind Yellow 600 is best described as "Accessible primary action". Recommended uses: Primary buttons on white (passes AA), Active state fills, Bold text links.