#CAC23F#CAC23F

#CAC23F is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.7% C 0.148 H 105.8°. Best body text is #000000 at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#CAC23F
RGBrgb(202, 194, 63)
HSLhsl(57, 57%, 52%)
HSVhsv(57, 69%, 79%)
CMYKcmyk(0%, 4%, 68.8%, 20.8%)
CIE-LABlab(76.98, -12.39, 63.64)
CIE-LCHlch(76.98, 64.84, 101.02°)
OKLaboklab(79.73% -0.0403 0.142)
OKLCHoklch(79.73% 0.148 105.8)
XYZxyz(44.5478, 51.5006, 12.2957)
Luminance0.5150 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC23F #3F47CA
analogous
#CA7D3F #CAC23F #8DCA3F
triadic
#CAC23F #3FCAC2 #C23FCA
tetradic
#CAC23F #3FCA7D #3F47CA #CA3F8D
square
#CAC23F #3FCA7D #3F47CA #CA3F8D
split-complementary
#CAC23F #3F8DCA #7D3FCA
monochromatic
#706B1F #A0992C #CAC23F #D7D16F #E4E09F

Accessibility & contrast

On white

1.86
#CAC23F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.30
#CAC23F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC23F
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC23F#FFFFFF#000000##000000
##CAC23F1.001.8611.3011.30
#FFFFFF1.861.0021.0021.00
#00000011.3021.001.001.00
##00000011.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB2B
Deuteranopia (green-blind)
#D6C148
Tritanopia (blue-blind)
#D9B5A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cac23f;
/* rgb */ color: rgb(202, 194, 63);
/* oklch */ color: oklch(79.7% 0.148 105.8);
Tailwind
colors: {
  custom: {
    50: '#ded47c',
    500: '#cac23f',
    950: '#000000',
  },
}
SCSS
$custom: #cac23f;
$custom-light: #ded47c;
$custom-dark: #000000;
JSON
{
  "hex": "#cac23f",
  "rgb": {
    "r": 202,
    "g": 194,
    "b": 63
  },
  "hsl": {
    "h": 56.547,
    "s": 56.735,
    "l": 51.961
  },
  "oklch": {
    "l": 0.79731,
    "c": 0.14762,
    "h": 105.8
  },
  "luminance": 0.51499
}

Semantic roles & 50–950 ramp

primary
#CAC23F
secondary
#343879
accent
#51E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC23F

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

Preview Lab → · Contrast checker → · Palette generator →

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