#CAC540#CAC540

#CAC540 is a light, vivid yellow. Relative luminance 0.529; OKLCH L 80.4% C 0.150 H 107.2°. Best body text is #000000 at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#CAC540
RGBrgb(202, 197, 64)
HSLhsl(58, 57%, 52%)
HSVhsv(58, 68%, 79%)
CMYKcmyk(0%, 2.5%, 68.3%, 20.8%)
CIE-LABlab(77.79, -13.86, 64.07)
CIE-LCHlch(77.79, 65.55, 102.21°)
OKLaboklab(80.38% -0.0443 0.1431)
OKLCHoklch(80.38% 0.15 107.2)
XYZxyz(45.2505, 52.8607, 12.6690)
Luminance0.5286 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC540 #4045CA
analogous
#CA8040 #CAC540 #8ACA40
triadic
#CAC540 #40CAC5 #C540CA
tetradic
#CAC540 #40CA80 #4045CA #CA408A
square
#CAC540 #40CA80 #4045CA #CA408A
split-complementary
#CAC540 #408ACA #8040CA
monochromatic
#706D1F #A09C2C #CAC540 #D7D470 #E5E2A0

Accessibility & contrast

On white

1.81
#CAC540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.57
#CAC540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC540
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC540#FFFFFF#000000##000000
##CAC5401.001.8111.5711.57
#FFFFFF1.811.0021.0021.00
#00000011.5721.001.001.00
##00000011.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2C
Deuteranopia (green-blind)
#D8C349
Tritanopia (blue-blind)
#D8B8AA
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cac540;
/* rgb */ color: rgb(202, 197, 64);
/* oklch */ color: oklch(80.4% 0.150 107.2);
Tailwind
colors: {
  custom: {
    50: '#ded67d',
    500: '#cac540',
    950: '#000000',
  },
}
SCSS
$custom: #cac540;
$custom-light: #ded67d;
$custom-dark: #000000;
JSON
{
  "hex": "#cac540",
  "rgb": {
    "r": 202,
    "g": 197,
    "b": 64
  },
  "hsl": {
    "h": 57.826,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.80379,
    "c": 0.14981,
    "h": 107.2
  },
  "luminance": 0.52859
}

Semantic roles & 50–950 ramp

primary
#CAC540
secondary
#35377A
accent
#4DE048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC540

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

Preview Lab → · Contrast checker → · Palette generator →

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