#CAC74E#CAC74E

#CAC74E is a light, vivid yellow. Relative luminance 0.540; OKLCH L 80.9% C 0.142 H 107.8°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#CAC74E
RGBrgb(202, 199, 78)
HSLhsl(59, 54%, 55%)
HSVhsv(59, 61%, 79%)
CMYKcmyk(0%, 1.5%, 61.4%, 20.8%)
CIE-LABlab(78.44, -14.04, 59.09)
CIE-LCHlch(78.44, 60.74, 103.36°)
OKLaboklab(80.93% -0.0433 0.1348)
OKLCHoklch(80.93% 0.142 107.8)
XYZxyz(46.1572, 53.9548, 15.1892)
Luminance0.5395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC74E #4E51CA
analogous
#CA894E #CAC74E #8FCA4E
triadic
#CAC74E #4ECAC7 #C74ECA
tetradic
#CAC74E #4ECA89 #4E51CA #CA4E8F
square
#CAC74E #4ECA89 #4E51CA #CA4E8F
split-complementary
#CAC74E #4E8FCA #894ECA
monochromatic
#797724 #A8A632 #CAC74E #D8D67D #E6E5AC

Accessibility & contrast

On white

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

On black

11.79
#CAC74E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC74E
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC74E#FFFFFF#000000##000000
##CAC74E1.001.7811.7911.79
#FFFFFF1.781.0021.0021.00
#00000011.7921.001.001.00
##00000011.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C03F
Deuteranopia (green-blind)
#D9C455
Tritanopia (blue-blind)
#D8BBAE
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cac74e;
/* rgb */ color: rgb(202, 199, 78);
/* oklch */ color: oklch(80.9% 0.142 107.8);
Tailwind
colors: {
  custom: {
    50: '#ddd785',
    500: '#cac74e',
    950: '#000000',
  },
}
SCSS
$custom: #cac74e;
$custom-light: #ddd785;
$custom-dark: #000000;
JSON
{
  "hex": "#cac74e",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 78
  },
  "hsl": {
    "h": 58.548,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.80925,
    "c": 0.14155,
    "h": 107.8
  },
  "luminance": 0.53953
}

Semantic roles & 50–950 ramp

primary
#CAC74E
secondary
#3B3C82
accent
#4EDD4B
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CAC74E

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

Preview Lab → · Contrast checker → · Palette generator →

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