#CAC438#CAC438

#CAC438 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.1% C 0.154 H 106.9°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#CAC438
RGBrgb(202, 196, 56)
HSLhsl(58, 58%, 51%)
HSVhsv(58, 72%, 79%)
CMYKcmyk(0%, 3%, 72.3%, 20.8%)
CIE-LABlab(77.47, -13.75, 66.68)
CIE-LCHlch(77.47, 68.08, 101.65°)
OKLaboklab(80.11% -0.0448 0.1472)
OKLCHoklch(80.11% 0.154 106.9)
XYZxyz(44.8126, 52.3235, 11.4795)
Luminance0.5232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC438 #383ECA
analogous
#CA7B38 #CAC438 #87CA38
triadic
#CAC438 #38CAC4 #C438CA
tetradic
#CAC438 #38CA7B #383ECA #CA3887
square
#CAC438 #38CA7B #383ECA #CA3887
split-complementary
#CAC438 #3887CA #7B38CA
monochromatic
#6B681D #9B9729 #CAC438 #D7D268 #E4E199

Accessibility & contrast

On white

1.83
#CAC438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.46
#CAC438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC438
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC438#FFFFFF#000000##000000
##CAC4381.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC1E
Deuteranopia (green-blind)
#D7C242
Tritanopia (blue-blind)
#D9B7A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cac438;
/* rgb */ color: rgb(202, 196, 56);
/* oklch */ color: oklch(80.1% 0.154 106.9);
Tailwind
colors: {
  custom: {
    50: '#ded578',
    500: '#cac438',
    950: '#000000',
  },
}
SCSS
$custom: #cac438;
$custom-light: #ded578;
$custom-dark: #000000;
JSON
{
  "hex": "#cac438",
  "rgb": {
    "r": 202,
    "g": 196,
    "b": 56
  },
  "hsl": {
    "h": 57.534,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.80109,
    "c": 0.15387,
    "h": 106.9
  },
  "luminance": 0.52322
}

Semantic roles & 50–950 ramp

primary
#CAC438
secondary
#313475
accent
#4DE147
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC438

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

Preview Lab → · Contrast checker → · Palette generator →

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