#CAC74B#CAC74B

#CAC74B is a light, vivid yellow. Relative luminance 0.539; OKLCH L 80.9% C 0.144 H 107.9°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#CAC74B
RGBrgb(202, 199, 75)
HSLhsl(59, 55%, 54%)
HSVhsv(59, 63%, 79%)
CMYKcmyk(0%, 1.5%, 62.9%, 20.8%)
CIE-LABlab(78.41, -14.23, 60.33)
CIE-LCHlch(78.41, 61.98, 103.27°)
OKLaboklab(80.9% -0.0442 0.1369)
OKLCHoklch(80.9% 0.144 107.9)
XYZxyz(46.0521, 53.9128, 14.6356)
Luminance0.5391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC74B #4B4ECA
analogous
#CA884B #CAC74B #8DCA4B
triadic
#CAC74B #4BCAC7 #C74BCA
tetradic
#CAC74B #4BCA88 #4B4ECA #CA4B8D
square
#CAC74B #4BCA88 #4B4ECA #CA4B8D
split-complementary
#CAC74B #4B8DCA #884BCA
monochromatic
#777523 #A7A431 #CAC74B #D8D67A #E6E4AA

Accessibility & contrast

On white

1.78
#CAC74B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.78
#CAC74B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC74B
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC74B#FFFFFF#000000##000000
##CAC74B1.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF3B
Deuteranopia (green-blind)
#D9C453
Tritanopia (blue-blind)
#D8BBAD
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cac74b;
/* rgb */ color: rgb(202, 199, 75);
/* oklch */ color: oklch(80.9% 0.144 107.9);
Tailwind
colors: {
  custom: {
    50: '#ddd783',
    500: '#cac74b',
    950: '#000000',
  },
}
SCSS
$custom: #cac74b;
$custom-light: #ddd783;
$custom-dark: #000000;
JSON
{
  "hex": "#cac74b",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 75
  },
  "hsl": {
    "h": 58.583,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.80898,
    "c": 0.14389,
    "h": 107.9
  },
  "luminance": 0.53911
}

Semantic roles & 50–950 ramp

primary
#CAC74B
secondary
#393B80
accent
#4DDE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CAC74B

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

Preview Lab → · Contrast checker → · Palette generator →

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