#CAC158#CAC158

#CAC158 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.8% C 0.127 H 104.4°. Best body text is #000000 at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#CAC158
RGBrgb(202, 193, 88)
HSLhsl(55, 52%, 57%)
HSVhsv(55, 56%, 79%)
CMYKcmyk(0%, 4.5%, 56.4%, 20.8%)
CIE-LABlab(76.92, -10.28, 53.00)
CIE-LCHlch(76.92, 53.99, 100.98°)
OKLaboklab(79.75% -0.0316 0.1231)
OKLCHoklch(79.75% 0.127 104.4)
XYZxyz(45.1900, 51.4026, 16.7719)
Luminance0.5140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC158 #5861CA
analogous
#CA8858 #CAC158 #9ACA58
triadic
#CAC158 #58CAC1 #C158CA
tetradic
#CAC158 #58CA88 #5861CA #CA589A
square
#CAC158 #58CA88 #5861CA #CA589A
split-complementary
#CAC158 #589ACA #8858CA
monochromatic
#7F7828 #AEA437 #CAC158 #D9D286 #E7E3B5

Accessibility & contrast

On white

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

On black

11.28
#CAC158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC158
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC158#FFFFFF#000000##000000
##CAC1581.001.8611.2811.28
#FFFFFF1.861.0021.0021.00
#00000011.2821.001.001.00
##00000011.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BB4D
Deuteranopia (green-blind)
#D3C05D
Tritanopia (blue-blind)
#D8B5AA
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cac158;
/* rgb */ color: rgb(202, 193, 88);
/* oklch */ color: oklch(79.8% 0.127 104.4);
Tailwind
colors: {
  custom: {
    50: '#ddd38b',
    500: '#cac158',
    950: '#000000',
  },
}
SCSS
$custom: #cac158;
$custom-light: #ddd38b;
$custom-dark: #000000;
JSON
{
  "hex": "#cac158",
  "rgb": {
    "r": 202,
    "g": 193,
    "b": 88
  },
  "hsl": {
    "h": 55.263,
    "s": 51.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.7975,
    "c": 0.12704,
    "h": 104.4
  },
  "luminance": 0.51401
}

Semantic roles & 50–950 ramp

primary
#CAC158
secondary
#3F4587
accent
#58DB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CAC158

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

Preview Lab → · Contrast checker → · Palette generator →

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