#CCB74B#CCB74B

#CCB74B is a light, vivid yellow. Relative luminance 0.472; OKLCH L 77.7% C 0.129 H 98.3°. Best body text is #000000 at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#CCB74B
RGBrgb(204, 183, 75)
HSLhsl(50, 56%, 55%)
HSVhsv(50, 63%, 80%)
CMYKcmyk(0%, 10.3%, 63.2%, 20%)
CIE-LABlab(74.33, -5.18, 56.01)
CIE-LCHlch(74.33, 56.25, 95.29°)
OKLaboklab(77.69% -0.0186 0.1277)
OKLCHoklch(77.69% 0.129 98.3)
XYZxyz(43.1072, 47.2143, 13.4979)
Luminance0.4721 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB74B #4B60CC
analogous
#CC774B #CCB74B #A0CC4B
triadic
#CCB74B #4BCCB7 #B74BCC
tetradic
#CCB74B #4BCC77 #4B60CC #CC4BA0
square
#CCB74B #4BCC77 #4B60CC #CC4BA0
split-complementary
#CCB74B #4BA0CC #774BCC
monochromatic
#7A6C23 #AA9630 #CCB74B #DACA7B #E7DDAA

Accessibility & contrast

On white

2.01
#CCB74B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.44
#CCB74B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB74B
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB74B#FFFFFF#000000##000000
##CCB74B1.002.0110.4410.44
#FFFFFF2.011.0021.0021.00
#00000010.4421.001.001.00
##00000010.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B33E
Deuteranopia (green-blind)
#CDBA51
Tritanopia (blue-blind)
#DBAAA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ccb74b;
/* rgb */ color: rgb(204, 183, 75);
/* oklch */ color: oklch(77.7% 0.129 98.3);
Tailwind
colors: {
  custom: {
    50: '#dfcc82',
    500: '#ccb74b',
    950: '#000000',
  },
}
SCSS
$custom: #ccb74b;
$custom-light: #dfcc82;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb74b",
  "rgb": {
    "r": 204,
    "g": 183,
    "b": 75
  },
  "hsl": {
    "h": 50.233,
    "s": 55.844,
    "l": 54.706
  },
  "oklch": {
    "l": 0.77693,
    "c": 0.12909,
    "h": 98.3
  },
  "luminance": 0.47212
}

Semantic roles & 50–950 ramp

primary
#CCB74B
secondary
#9EA7D5
accent
#61DF49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB74B

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

Preview Lab → · Contrast checker → · Palette generator →

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