#CAC757#CAC757

#CAC757 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 81.0% C 0.134 H 107.6°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#CAC757
RGBrgb(202, 199, 87)
HSLhsl(58, 52%, 57%)
HSVhsv(58, 57%, 79%)
CMYKcmyk(0%, 1.5%, 56.9%, 20.8%)
CIE-LABlab(78.52, -13.41, 55.25)
CIE-LCHlch(78.52, 56.85, 103.64°)
OKLaboklab(81.02% -0.0406 0.1278)
OKLCHoklch(81.02% 0.134 107.6)
XYZxyz(46.5022, 54.0929, 17.0064)
Luminance0.5409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC757 #575ACA
analogous
#CA8E57 #CAC757 #94CA57
triadic
#CAC757 #57CAC7 #C757CA
tetradic
#CAC757 #57CA8E #575ACA #CA5794
square
#CAC757 #57CA8E #575ACA #CA5794
split-complementary
#CAC757 #5794CA #8E57CA
monochromatic
#7F7C28 #ADAA37 #CAC757 #D9D786 #E7E6B4

Accessibility & contrast

On white

1.78
#CAC757 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.82
#CAC757 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC757
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC757#FFFFFF#000000##000000
##CAC7571.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C04B
Deuteranopia (green-blind)
#D8C45D
Tritanopia (blue-blind)
#D7BBAF
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cac757;
/* rgb */ color: rgb(202, 199, 87);
/* oklch */ color: oklch(81.0% 0.134 107.6);
Tailwind
colors: {
  custom: {
    50: '#ddd78a',
    500: '#cac757',
    950: '#000000',
  },
}
SCSS
$custom: #cac757;
$custom-light: #ddd78a;
$custom-dark: #000000;
JSON
{
  "hex": "#cac757",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 87
  },
  "hsl": {
    "h": 58.435,
    "s": 52.036,
    "l": 56.667
  },
  "oklch": {
    "l": 0.81015,
    "c": 0.13405,
    "h": 107.6
  },
  "luminance": 0.54092
}

Semantic roles & 50–950 ramp

primary
#CAC757
secondary
#3F4187
accent
#50DB4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CAC757

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

Preview Lab → · Contrast checker → · Palette generator →

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