#CAC240#CAC240

#CAC240 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.7% C 0.147 H 105.8°. Best body text is #000000 at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#CAC240
RGBrgb(202, 194, 64)
HSLhsl(57, 57%, 52%)
HSVhsv(57, 68%, 79%)
CMYKcmyk(0%, 4%, 68.3%, 20.8%)
CIE-LABlab(76.99, -12.34, 63.27)
CIE-LCHlch(76.99, 64.46, 101.04°)
OKLaboklab(79.74% -0.04 0.1414)
OKLCHoklch(79.74% 0.147 105.8)
XYZxyz(44.5760, 51.5119, 12.4442)
Luminance0.5151 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC240 #4048CA
analogous
#CA7D40 #CAC240 #8DCA40
triadic
#CAC240 #40CAC2 #C240CA
tetradic
#CAC240 #40CA7D #4048CA #CA408D
square
#CAC240 #40CA7D #4048CA #CA408D
split-complementary
#CAC240 #408DCA #7D40CA
monochromatic
#706C1F #A09A2C #CAC240 #D7D170 #E5E1A0

Accessibility & contrast

On white

1.86
#CAC240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.30
#CAC240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC240
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC240#FFFFFF#000000##000000
##CAC2401.001.8611.3011.30
#FFFFFF1.861.0021.0021.00
#00000011.3021.001.001.00
##00000011.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB2C
Deuteranopia (green-blind)
#D6C149
Tritanopia (blue-blind)
#D9B5A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cac240;
/* rgb */ color: rgb(202, 194, 64);
/* oklch */ color: oklch(79.7% 0.147 105.8);
Tailwind
colors: {
  custom: {
    50: '#ded47c',
    500: '#cac240',
    950: '#000000',
  },
}
SCSS
$custom: #cac240;
$custom-light: #ded47c;
$custom-dark: #000000;
JSON
{
  "hex": "#cac240",
  "rgb": {
    "r": 202,
    "g": 194,
    "b": 64
  },
  "hsl": {
    "h": 56.522,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.79738,
    "c": 0.14696,
    "h": 105.8
  },
  "luminance": 0.5151
}

Semantic roles & 50–950 ramp

primary
#CAC240
secondary
#35397A
accent
#51E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC240

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

Preview Lab → · Contrast checker → · Palette generator →

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