#CAC139#CAC139

#CAC139 is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.5% C 0.151 H 105.5°. Best body text is #000000 at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#CAC139
RGBrgb(202, 193, 57)
HSLhsl(56, 58%, 51%)
HSVhsv(56, 72%, 79%)
CMYKcmyk(0%, 4.5%, 71.8%, 20.8%)
CIE-LABlab(76.68, -12.18, 65.56)
CIE-LCHlch(76.68, 66.68, 100.53°)
OKLaboklab(79.47% -0.0403 0.145)
OKLCHoklch(79.47% 0.151 105.5)
XYZxyz(44.1674, 50.9935, 11.3863)
Luminance0.5099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC139 #3942CA
analogous
#CA7839 #CAC139 #8ACA39
triadic
#CAC139 #39CAC1 #C139CA
tetradic
#CAC139 #39CA78 #3942CA #CA398A
square
#CAC139 #39CA78 #3942CA #CA398A
split-complementary
#CAC139 #398ACA #7839CA
monochromatic
#6C671D #9C952A #CAC139 #D7D069 #E4DF9A

Accessibility & contrast

On white

1.88
#CAC139 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.20
#CAC139 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC139
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC139#FFFFFF#000000##000000
##CAC1391.001.8811.2011.20
#FFFFFF1.881.0021.0021.00
#00000011.2021.001.001.00
##00000011.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA21
Deuteranopia (green-blind)
#D5C043
Tritanopia (blue-blind)
#D9B4A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cac139;
/* rgb */ color: rgb(202, 193, 57);
/* oklch */ color: oklch(79.5% 0.151 105.5);
Tailwind
colors: {
  custom: {
    50: '#ded379',
    500: '#cac139',
    950: '#000000',
  },
}
SCSS
$custom: #cac139;
$custom-light: #ded379;
$custom-dark: #000000;
JSON
{
  "hex": "#cac139",
  "rgb": {
    "r": 202,
    "g": 193,
    "b": 57
  },
  "hsl": {
    "h": 56.276,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.79475,
    "c": 0.15051,
    "h": 105.5
  },
  "luminance": 0.50992
}

Semantic roles & 50–950 ramp

primary
#CAC139
secondary
#323675
accent
#50E147
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC139

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

Preview Lab → · Contrast checker → · Palette generator →

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