#CCB04F#CCB04F

#CCB04F is a light, vivid yellow. Relative luminance 0.445; OKLCH L 76.3% C 0.120 H 93.2°. Best body text is #000000 at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#CCB04F
RGBrgb(204, 176, 79)
HSLhsl(47, 55%, 55%)
HSVhsv(47, 61%, 80%)
CMYKcmyk(0%, 13.7%, 61.3%, 20%)
CIE-LABlab(72.53, -1.25, 52.25)
CIE-LCHlch(72.53, 52.26, 91.37°)
OKLaboklab(76.28% -0.0068 0.1203)
OKLCHoklch(76.28% 0.12 93.2)
XYZxyz(41.8403, 44.4547, 13.7724)
Luminance0.4445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB04F #4F6BCC
analogous
#CC714F #CCB04F #A9CC4F
triadic
#CCB04F #4FCCB0 #B04FCC
tetradic
#CCB04F #4FCC71 #4F6BCC #CC4FA9
square
#CCB04F #4FCC71 #4F6BCC #CC4FA9
split-complementary
#CCB04F #4FA9CC #714FCC
monochromatic
#7D6924 #AC9132 #CCB04F #DAC57E #E7DBAE

Accessibility & contrast

On white

2.12
#CCB04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.89
#CCB04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB04F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB04F#FFFFFF#000000##000000
##CCB04F1.002.129.899.89
#FFFFFF2.121.0021.0021.00
#0000009.8921.001.001.00
##0000009.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AD45
Deuteranopia (green-blind)
#C8B553
Tritanopia (blue-blind)
#DBA39B
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #ccb04f;
/* rgb */ color: rgb(204, 176, 79);
/* oklch */ color: oklch(76.3% 0.120 93.2);
Tailwind
colors: {
  custom: {
    50: '#dfc784',
    500: '#ccb04f',
    950: '#000000',
  },
}
SCSS
$custom: #ccb04f;
$custom-light: #dfc784;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb04f",
  "rgb": {
    "r": 204,
    "g": 176,
    "b": 79
  },
  "hsl": {
    "h": 46.56,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.76284,
    "c": 0.12047,
    "h": 93.2
  },
  "luminance": 0.44453
}

Semantic roles & 50–950 ramp

primary
#CCB04F
secondary
#A1ADD5
accent
#6BDE49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB04F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CCB04F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva