#CAC74F#CAC74F

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

Color values

HEX#CAC74F
RGBrgb(202, 199, 79)
HSLhsl(59, 54%, 55%)
HSVhsv(59, 61%, 79%)
CMYKcmyk(0%, 1.5%, 60.9%, 20.8%)
CIE-LABlab(78.44, -13.97, 58.68)
CIE-LCHlch(78.44, 60.32, 103.39°)
OKLaboklab(80.94% -0.043 0.134)
OKLCHoklch(80.94% 0.141 107.8)
XYZxyz(46.1933, 53.9693, 15.3794)
Luminance0.5397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC74F #4F52CA
analogous
#CA8A4F #CAC74F #8FCA4F
triadic
#CAC74F #4FCAC7 #C74FCA
tetradic
#CAC74F #4FCA8A #4F52CA #CA4F8F
square
#CAC74F #4FCA8A #4F52CA #CA4F8F
split-complementary
#CAC74F #4F8FCA #8A4FCA
monochromatic
#7A7825 #A9A633 #CAC74F #D8D67E #E6E5AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAC74F#FFFFFF#000000##000000
##CAC74F1.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)
#D6C041
Deuteranopia (green-blind)
#D9C456
Tritanopia (blue-blind)
#D8BBAE
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cac74f;
/* rgb */ color: rgb(202, 199, 79);
/* oklch */ color: oklch(80.9% 0.141 107.8);
Tailwind
colors: {
  custom: {
    50: '#ddd785',
    500: '#cac74f',
    950: '#000000',
  },
}
SCSS
$custom: #cac74f;
$custom-light: #ddd785;
$custom-dark: #000000;
JSON
{
  "hex": "#cac74f",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 79
  },
  "hsl": {
    "h": 58.537,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.80935,
    "c": 0.14076,
    "h": 107.8
  },
  "luminance": 0.53968
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAC74F

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

Preview Lab → · Contrast checker → · Palette generator →

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