#CAC64F#CAC64F

#CAC64F is a light, vivid yellow. Relative luminance 0.535; OKLCH L 80.7% C 0.140 H 107.3°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#CAC64F
RGBrgb(202, 198, 79)
HSLhsl(58, 54%, 55%)
HSVhsv(58, 61%, 79%)
CMYKcmyk(0%, 2%, 60.9%, 20.8%)
CIE-LABlab(78.18, -13.47, 58.39)
CIE-LCHlch(78.18, 59.92, 102.99°)
OKLaboklab(80.72% -0.0416 0.1334)
OKLCHoklch(80.72% 0.14 107.3)
XYZxyz(45.9640, 53.5106, 15.3030)
Luminance0.5351 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC64F #4F53CA
analogous
#CA894F #CAC64F #90CA4F
triadic
#CAC64F #4FCAC6 #C64FCA
tetradic
#CAC64F #4FCA89 #4F53CA #CA4F90
square
#CAC64F #4FCA89 #4F53CA #CA4F90
split-complementary
#CAC64F #4F90CA #894FCA
monochromatic
#7A7725 #A9A533 #CAC64F #D8D57E #E6E4AD

Accessibility & contrast

On white

1.79
#CAC64F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.70
#CAC64F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC64F
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC64F#FFFFFF#000000##000000
##CAC64F1.001.7911.7011.70
#FFFFFF1.791.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BF41
Deuteranopia (green-blind)
#D8C456
Tritanopia (blue-blind)
#D8BAAD
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cac64f;
/* rgb */ color: rgb(202, 198, 79);
/* oklch */ color: oklch(80.7% 0.140 107.3);
Tailwind
colors: {
  custom: {
    50: '#ddd785',
    500: '#cac64f',
    950: '#000000',
  },
}
SCSS
$custom: #cac64f;
$custom-light: #ddd785;
$custom-dark: #000000;
JSON
{
  "hex": "#cac64f",
  "rgb": {
    "r": 202,
    "g": 198,
    "b": 79
  },
  "hsl": {
    "h": 58.049,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.80721,
    "c": 0.13973,
    "h": 107.3
  },
  "luminance": 0.53509
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAC64F

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

Preview Lab → · Contrast checker → · Palette generator →

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