#CAC74A#CAC74A

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

Color values

HEX#CAC74A
RGBrgb(202, 199, 74)
HSLhsl(59, 55%, 54%)
HSVhsv(59, 63%, 79%)
CMYKcmyk(0%, 1.5%, 63.4%, 20.8%)
CIE-LABlab(78.40, -14.29, 60.73)
CIE-LCHlch(78.40, 62.39, 103.24°)
OKLaboklab(80.89% -0.0445 0.1376)
OKLCHoklch(80.89% 0.145 107.9)
XYZxyz(46.0181, 53.8992, 14.4568)
Luminance0.5390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC74A #4A4DCA
analogous
#CA874A #CAC74A #8DCA4A
triadic
#CAC74A #4ACAC7 #C74ACA
tetradic
#CAC74A #4ACA87 #4A4DCA #CA4A8D
square
#CAC74A #4ACA87 #4A4DCA #CA4A8D
split-complementary
#CAC74A #4A8DCA #874ACA
monochromatic
#777523 #A6A331 #CAC74A #D8D679 #E6E4A9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAC74A#FFFFFF#000000##000000
##CAC74A1.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)
#D7BF3A
Deuteranopia (green-blind)
#D9C452
Tritanopia (blue-blind)
#D8BBAD
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cac74a;
/* rgb */ color: rgb(202, 199, 74);
/* oklch */ color: oklch(80.9% 0.145 107.9);
Tailwind
colors: {
  custom: {
    50: '#ddd782',
    500: '#cac74a',
    950: '#000000',
  },
}
SCSS
$custom: #cac74a;
$custom-light: #ddd782;
$custom-dark: #000000;
JSON
{
  "hex": "#cac74a",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 74
  },
  "hsl": {
    "h": 58.594,
    "s": 54.701,
    "l": 54.118
  },
  "oklch": {
    "l": 0.80889,
    "c": 0.14465,
    "h": 107.9
  },
  "luminance": 0.53898
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAC74A

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

Preview Lab → · Contrast checker → · Palette generator →

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