#CAB23B#CAB23B

#CAB23B is a light, vivid yellow. Relative luminance 0.447; OKLCH L 76.3% C 0.137 H 97.5°. Best body text is #000000 at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#CAB23B
RGBrgb(202, 178, 59)
HSLhsl(50, 57%, 51%)
HSVhsv(50, 71%, 79%)
CMYKcmyk(0%, 11.9%, 70.8%, 20.8%)
CIE-LABlab(72.70, -4.34, 60.92)
CIE-LCHlch(72.70, 61.07, 94.08°)
OKLaboklab(76.32% -0.0179 0.1356)
OKLCHoklch(76.32% 0.137 97.5)
XYZxyz(41.0689, 44.7152, 10.6045)
Luminance0.4471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB23B #3B53CA
analogous
#CA6A3B #CAB23B #9ACA3B
triadic
#CAB23B #3BCAB2 #B23BCA
tetradic
#CAB23B #3BCA6A #3B53CA #CA3B9A
square
#CAB23B #3BCA6A #3B53CA #CA3B9A
split-complementary
#CAB23B #3B9ACA #6A3BCA
monochromatic
#6D601E #9D8A2B #CAB23B #D7C56B #E4D89B

Accessibility & contrast

On white

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

On black

9.94
#CAB23B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB23B
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB23B#FFFFFF#000000##000000
##CAB23B1.002.119.949.94
#FFFFFF2.111.0021.0021.00
#0000009.9421.001.001.00
##0000009.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE29
Deuteranopia (green-blind)
#CAB642
Tritanopia (blue-blind)
#DAA59A
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cab23b;
/* rgb */ color: rgb(202, 178, 59);
/* oklch */ color: oklch(76.3% 0.137 97.5);
Tailwind
colors: {
  custom: {
    50: '#dec878',
    500: '#cab23b',
    950: '#000000',
  },
}
SCSS
$custom: #cab23b;
$custom-light: #dec878;
$custom-dark: #000000;
JSON
{
  "hex": "#cab23b",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 59
  },
  "hsl": {
    "h": 49.93,
    "s": 57.43,
    "l": 51.176
  },
  "oklch": {
    "l": 0.76324,
    "c": 0.13675,
    "h": 97.5
  },
  "luminance": 0.44713
}

Semantic roles & 50–950 ramp

primary
#CAB23B
secondary
#919BD0
accent
#61E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB23B

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

Preview Lab → · Contrast checker → · Palette generator →

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