#CACB40#CACB40

#CACB40 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.7% C 0.156 H 109.8°. Best body text is #000000 at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#CACB40
RGBrgb(202, 203, 64)
HSLhsl(60, 57%, 52%)
HSVhsv(60, 68%, 80%)
CMYKcmyk(0.5%, 0%, 68.5%, 20.4%)
CIE-LABlab(79.41, -16.87, 65.68)
CIE-LCHlch(79.41, 67.81, 104.40°)
OKLaboklab(81.67% -0.0528 0.1465)
OKLCHoklch(81.67% 0.156 109.8)
XYZxyz(46.6401, 55.6399, 13.1322)
Luminance0.5564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACB40 #4140CB
analogous
#CB8740 #CACB40 #84CB40
triadic
#CACB40 #40CACB #CB40CA
tetradic
#CACB40 #40CB87 #4140CB #CB4084
square
#CACB40 #40CB87 #4140CB #CB4084
split-complementary
#CACB40 #4084CB #8740CB
monochromatic
#71721F #A1A22C #CACB40 #D7D870 #E5E5A0

Accessibility & contrast

On white

1.73
#CACB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.13
#CACB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACB40
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACB40#FFFFFF#000000##000000
##CACB401.001.7312.1312.13
#FFFFFF1.731.0021.0021.00
#00000012.1321.001.001.00
##00000012.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC22A
Deuteranopia (green-blind)
#DCC74A
Tritanopia (blue-blind)
#D8BEAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cacb40;
/* rgb */ color: rgb(202, 203, 64);
/* oklch */ color: oklch(81.7% 0.156 109.8);
Tailwind
colors: {
  custom: {
    50: '#deda7d',
    500: '#cacb40',
    950: '#000000',
  },
}
SCSS
$custom: #cacb40;
$custom-light: #deda7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cacb40",
  "rgb": {
    "r": 202,
    "g": 203,
    "b": 64
  },
  "hsl": {
    "h": 60.432,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.81669,
    "c": 0.1557,
    "h": 109.8
  },
  "luminance": 0.55639
}

Semantic roles & 50–950 ramp

primary
#CACB40
secondary
#35357B
accent
#47E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CACB40

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

Preview Lab → · Contrast checker → · Palette generator →

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