#CAC239#CAC239

#CAC239 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.7% C 0.151 H 106.0°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#CAC239
RGBrgb(202, 194, 57)
HSLhsl(57, 58%, 51%)
HSVhsv(57, 72%, 79%)
CMYKcmyk(0%, 4%, 71.8%, 20.8%)
CIE-LABlab(76.94, -12.69, 65.82)
CIE-LCHlch(76.94, 67.03, 100.91°)
OKLaboklab(79.69% -0.0417 0.1456)
OKLCHoklch(79.69% 0.151 106)
XYZxyz(44.3892, 51.4372, 11.4602)
Luminance0.5144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC239 #3941CA
analogous
#CA7939 #CAC239 #89CA39
triadic
#CAC239 #39CAC2 #C239CA
tetradic
#CAC239 #39CA79 #3941CA #CA3989
square
#CAC239 #39CA79 #3941CA #CA3989
split-complementary
#CAC239 #3989CA #7939CA
monochromatic
#6C671D #9C962A #CAC239 #D7D169 #E4E09A

Accessibility & contrast

On white

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

On black

11.29
#CAC239 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC239
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC239#FFFFFF#000000##000000
##CAC2391.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB20
Deuteranopia (green-blind)
#D6C043
Tritanopia (blue-blind)
#D9B5A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cac239;
/* rgb */ color: rgb(202, 194, 57);
/* oklch */ color: oklch(79.7% 0.151 106.0);
Tailwind
colors: {
  custom: {
    50: '#ded479',
    500: '#cac239',
    950: '#000000',
  },
}
SCSS
$custom: #cac239;
$custom-light: #ded479;
$custom-dark: #000000;
JSON
{
  "hex": "#cac239",
  "rgb": {
    "r": 202,
    "g": 194,
    "b": 57
  },
  "hsl": {
    "h": 56.69,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.79688,
    "c": 0.15143,
    "h": 106
  },
  "luminance": 0.51436
}

Semantic roles & 50–950 ramp

primary
#CAC239
secondary
#323675
accent
#4FE147
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC239

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

Preview Lab → · Contrast checker → · Palette generator →

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