#CAC256#CAC256

#CAC256 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 79.9% C 0.130 H 105.0°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#CAC256
RGBrgb(202, 194, 86)
HSLhsl(56, 52%, 56%)
HSVhsv(56, 57%, 79%)
CMYKcmyk(0%, 4%, 57.4%, 20.8%)
CIE-LABlab(77.17, -10.94, 54.19)
CIE-LCHlch(77.17, 55.28, 101.42°)
OKLaboklab(79.94% -0.0337 0.1254)
OKLCHoklch(79.94% 0.13 105)
XYZxyz(45.3301, 51.8135, 16.4155)
Luminance0.5181 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC256 #565ECA
analogous
#CA8856 #CAC256 #98CA56
triadic
#CAC256 #56CAC2 #C256CA
tetradic
#CAC256 #56CA88 #565ECA #CA5698
square
#CAC256 #56CA88 #565ECA #CA5698
split-complementary
#CAC256 #5698CA #8856CA
monochromatic
#7E7828 #ADA436 #CAC256 #D9D385 #E7E4B3

Accessibility & contrast

On white

1.85
#CAC256 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.36
#CAC256 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC256
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC256#FFFFFF#000000##000000
##CAC2561.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BC4B
Deuteranopia (green-blind)
#D4C15C
Tritanopia (blue-blind)
#D8B6AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cac256;
/* rgb */ color: rgb(202, 194, 86);
/* oklch */ color: oklch(79.9% 0.130 105.0);
Tailwind
colors: {
  custom: {
    50: '#ddd489',
    500: '#cac256',
    950: '#000000',
  },
}
SCSS
$custom: #cac256;
$custom-light: #ddd489;
$custom-dark: #000000;
JSON
{
  "hex": "#cac256",
  "rgb": {
    "r": 202,
    "g": 194,
    "b": 86
  },
  "hsl": {
    "h": 55.862,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.7994,
    "c": 0.12981,
    "h": 105
  },
  "luminance": 0.51812
}

Semantic roles & 50–950 ramp

primary
#CAC256
secondary
#3E4386
accent
#56DC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CAC256

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

Preview Lab → · Contrast checker → · Palette generator →

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