#CAC340#CAC340

#CAC340 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 80.0% C 0.148 H 106.3°. Best body text is #000000 at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#CAC340
RGBrgb(202, 195, 64)
HSLhsl(57, 57%, 52%)
HSVhsv(57, 68%, 79%)
CMYKcmyk(0%, 3.5%, 68.3%, 20.8%)
CIE-LABlab(77.26, -12.85, 63.53)
CIE-LCHlch(77.26, 64.82, 101.43°)
OKLaboklab(79.95% -0.0415 0.142)
OKLCHoklch(79.95% 0.148 106.3)
XYZxyz(44.7993, 51.9585, 12.5187)
Luminance0.5196 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC340 #4047CA
analogous
#CA7E40 #CAC340 #8CCA40
triadic
#CAC340 #40CAC3 #C340CA
tetradic
#CAC340 #40CA7E #4047CA #CA408C
square
#CAC340 #40CA7E #4047CA #CA408C
split-complementary
#CAC340 #408CCA #7E40CA
monochromatic
#706C1F #A09A2C #CAC340 #D7D270 #E5E1A0

Accessibility & contrast

On white

1.84
#CAC340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.39
#CAC340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC340
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC340#FFFFFF#000000##000000
##CAC3401.001.8411.3911.39
#FFFFFF1.841.0021.0021.00
#00000011.3921.001.001.00
##00000011.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC2C
Deuteranopia (green-blind)
#D6C149
Tritanopia (blue-blind)
#D9B6A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cac340;
/* rgb */ color: rgb(202, 195, 64);
/* oklch */ color: oklch(80.0% 0.148 106.3);
Tailwind
colors: {
  custom: {
    50: '#ded47c',
    500: '#cac340',
    950: '#000000',
  },
}
SCSS
$custom: #cac340;
$custom-light: #ded47c;
$custom-dark: #000000;
JSON
{
  "hex": "#cac340",
  "rgb": {
    "r": 202,
    "g": 195,
    "b": 64
  },
  "hsl": {
    "h": 56.957,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.79952,
    "c": 0.14789,
    "h": 106.3
  },
  "luminance": 0.51957
}

Semantic roles & 50–950 ramp

primary
#CAC340
secondary
#35387A
accent
#50E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC340

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

Preview Lab → · Contrast checker → · Palette generator →

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