#CAC440#CAC440

#CAC440 is a light, vivid yellow. Relative luminance 0.524; OKLCH L 80.2% C 0.149 H 106.7°. Best body text is #000000 at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#CAC440
RGBrgb(202, 196, 64)
HSLhsl(57, 57%, 52%)
HSVhsv(57, 68%, 79%)
CMYKcmyk(0%, 3%, 68.3%, 20.8%)
CIE-LABlab(77.52, -13.35, 63.80)
CIE-LCHlch(77.52, 65.19, 101.82°)
OKLaboklab(80.16% -0.0429 0.1425)
OKLCHoklch(80.16% 0.149 106.7)
XYZxyz(45.0242, 52.4081, 12.5936)
Luminance0.5241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC440 #4046CA
analogous
#CA7F40 #CAC440 #8BCA40
triadic
#CAC440 #40CAC4 #C440CA
tetradic
#CAC440 #40CA7F #4046CA #CA408B
square
#CAC440 #40CA7F #4046CA #CA408B
split-complementary
#CAC440 #408BCA #7F40CA
monochromatic
#706D1F #A09B2C #CAC440 #D7D370 #E5E2A0

Accessibility & contrast

On white

1.83
#CAC440 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.48
#CAC440 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC440
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC440#FFFFFF#000000##000000
##CAC4401.001.8311.4811.48
#FFFFFF1.831.0021.0021.00
#00000011.4821.001.001.00
##00000011.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD2C
Deuteranopia (green-blind)
#D7C249
Tritanopia (blue-blind)
#D8B7AA
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cac440;
/* rgb */ color: rgb(202, 196, 64);
/* oklch */ color: oklch(80.2% 0.149 106.7);
Tailwind
colors: {
  custom: {
    50: '#ded57d',
    500: '#cac440',
    950: '#000000',
  },
}
SCSS
$custom: #cac440;
$custom-light: #ded57d;
$custom-dark: #000000;
JSON
{
  "hex": "#cac440",
  "rgb": {
    "r": 202,
    "g": 196,
    "b": 64
  },
  "hsl": {
    "h": 57.391,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.80165,
    "c": 0.14884,
    "h": 106.7
  },
  "luminance": 0.52407
}

Semantic roles & 50–950 ramp

primary
#CAC440
secondary
#35387A
accent
#4FE048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC440

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

Preview Lab → · Contrast checker → · Palette generator →

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