#CAC938#CAC938

#CAC938 is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.2% C 0.159 H 109.1°. Best body text is #000000 at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#CAC938
RGBrgb(202, 201, 56)
HSLhsl(60, 58%, 51%)
HSVhsv(60, 72%, 79%)
CMYKcmyk(0%, 0.5%, 72.3%, 20.8%)
CIE-LABlab(78.82, -16.26, 67.96)
CIE-LCHlch(78.82, 69.88, 103.45°)
OKLaboklab(81.18% -0.0518 0.1499)
OKLCHoklch(81.18% 0.159 109.1)
XYZxyz(45.9593, 54.6168, 11.8617)
Luminance0.5462 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC938 #3839CA
analogous
#CA8038 #CAC938 #82CA38
triadic
#CAC938 #38CAC9 #C938CA
tetradic
#CAC938 #38CA80 #3839CA #CA3882
square
#CAC938 #38CA80 #3839CA #CA3882
split-complementary
#CAC938 #3882CA #8038CA
monochromatic
#6B6B1D #9B9B29 #CAC938 #D7D668 #E4E399

Accessibility & contrast

On white

1.76
#CAC938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.92
#CAC938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC938
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC938#FFFFFF#000000##000000
##CAC9381.001.7611.9211.92
#FFFFFF1.761.0021.0021.00
#00000011.9221.001.001.00
##00000011.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C11B
Deuteranopia (green-blind)
#DBC543
Tritanopia (blue-blind)
#D8BCAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cac938;
/* rgb */ color: rgb(202, 201, 56);
/* oklch */ color: oklch(81.2% 0.159 109.1);
Tailwind
colors: {
  custom: {
    50: '#ded979',
    500: '#cac938',
    950: '#000000',
  },
}
SCSS
$custom: #cac938;
$custom-light: #ded979;
$custom-dark: #000000;
JSON
{
  "hex": "#cac938",
  "rgb": {
    "r": 202,
    "g": 201,
    "b": 56
  },
  "hsl": {
    "h": 59.589,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.81183,
    "c": 0.15863,
    "h": 109.1
  },
  "luminance": 0.54615
}

Semantic roles & 50–950 ramp

primary
#CAC938
secondary
#313275
accent
#48E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC938

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

Preview Lab → · Contrast checker → · Palette generator →

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