#CAB23F#CAB23F

#CAB23F is a light, vivid yellow. Relative luminance 0.448; OKLCH L 76.4% C 0.134 H 97.2°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#CAB23F
RGBrgb(202, 178, 63)
HSLhsl(50, 57%, 52%)
HSVhsv(50, 69%, 79%)
CMYKcmyk(0%, 11.9%, 68.8%, 20.8%)
CIE-LABlab(72.73, -4.13, 59.36)
CIE-LCHlch(72.73, 59.50, 93.98°)
OKLaboklab(76.36% -0.0169 0.133)
OKLCHoklch(76.36% 0.134 97.2)
XYZxyz(41.1767, 44.7583, 11.1720)
Luminance0.4476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB23F #3F57CA
analogous
#CA6C3F #CAB23F #9DCA3F
triadic
#CAB23F #3FCAB2 #B23FCA
tetradic
#CAB23F #3FCA6C #3F57CA #CA3F9D
square
#CAB23F #3FCA6C #3F57CA #CA3F9D
split-complementary
#CAB23F #3F9DCA #6C3FCA
monochromatic
#70621F #A08C2C #CAB23F #D7C56F #E4D89F

Accessibility & contrast

On white

2.11
#CAB23F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.95
#CAB23F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB23F
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB23F#FFFFFF#000000##000000
##CAB23F1.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE2F
Deuteranopia (green-blind)
#CAB645
Tritanopia (blue-blind)
#DAA59B
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cab23f;
/* rgb */ color: rgb(202, 178, 63);
/* oklch */ color: oklch(76.4% 0.134 97.2);
Tailwind
colors: {
  custom: {
    50: '#dec87a',
    500: '#cab23f',
    950: '#000000',
  },
}
SCSS
$custom: #cab23f;
$custom-light: #dec87a;
$custom-dark: #000000;
JSON
{
  "hex": "#cab23f",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 63
  },
  "hsl": {
    "h": 49.64,
    "s": 56.735,
    "l": 51.961
  },
  "oklch": {
    "l": 0.76356,
    "c": 0.13403,
    "h": 97.2
  },
  "luminance": 0.44756
}

Semantic roles & 50–950 ramp

primary
#CAB23F
secondary
#949ED1
accent
#62E048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB23F

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

Preview Lab → · Contrast checker → · Palette generator →

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