#CAC640#CAC640

#CAC640 is a light, vivid yellow. Relative luminance 0.533; OKLCH L 80.6% C 0.151 H 107.7°. Best body text is #000000 at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#CAC640
RGBrgb(202, 198, 64)
HSLhsl(58, 57%, 52%)
HSVhsv(58, 68%, 79%)
CMYKcmyk(0%, 2%, 68.3%, 20.8%)
CIE-LABlab(78.06, -14.36, 64.34)
CIE-LCHlch(78.06, 65.92, 102.58°)
OKLaboklab(80.59% -0.0457 0.1437)
OKLCHoklch(80.59% 0.151 107.7)
XYZxyz(45.4783, 53.3164, 12.7450)
Luminance0.5332 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC640 #4044CA
analogous
#CA8140 #CAC640 #89CA40
triadic
#CAC640 #40CAC6 #C640CA
tetradic
#CAC640 #40CA81 #4044CA #CA4089
square
#CAC640 #40CA81 #4044CA #CA4089
split-complementary
#CAC640 #4089CA #8140CA
monochromatic
#706E1F #A09D2C #CAC640 #D7D470 #E5E3A0

Accessibility & contrast

On white

1.80
#CAC640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.66
#CAC640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC640
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC640#FFFFFF#000000##000000
##CAC6401.001.8011.6611.66
#FFFFFF1.801.0021.0021.00
#00000011.6621.001.001.00
##00000011.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2B
Deuteranopia (green-blind)
#D9C349
Tritanopia (blue-blind)
#D8B9AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cac640;
/* rgb */ color: rgb(202, 198, 64);
/* oklch */ color: oklch(80.6% 0.151 107.7);
Tailwind
colors: {
  custom: {
    50: '#ded77d',
    500: '#cac640',
    950: '#000000',
  },
}
SCSS
$custom: #cac640;
$custom-light: #ded77d;
$custom-dark: #000000;
JSON
{
  "hex": "#cac640",
  "rgb": {
    "r": 202,
    "g": 198,
    "b": 64
  },
  "hsl": {
    "h": 58.261,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.80594,
    "c": 0.15076,
    "h": 107.7
  },
  "luminance": 0.53315
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAC640

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

Preview Lab → · Contrast checker → · Palette generator →

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