#CAB333#CAB333

#CAB333 is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.5% C 0.142 H 98.6°. Best body text is #000000 at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#CAB333
RGBrgb(202, 179, 51)
HSLhsl(51, 60%, 50%)
HSVhsv(51, 75%, 79%)
CMYKcmyk(0%, 11.4%, 74.8%, 20.8%)
CIE-LABlab(72.92, -5.24, 64.10)
CIE-LCHlch(72.92, 64.31, 94.67°)
OKLaboklab(76.48% -0.0213 0.1408)
OKLCHoklch(76.48% 0.142 98.6)
XYZxyz(41.0768, 45.0378, 9.6609)
Luminance0.4504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB333 #334ACA
analogous
#CA6833 #CAB333 #96CA33
triadic
#CAB333 #33CAB3 #B333CA
tetradic
#CAB333 #33CA68 #334ACA #CA3396
square
#CAB333 #33CA68 #334ACA #CA3396
split-complementary
#CAB333 #3396CA #6833CA
monochromatic
#685C1A #998827 #CAB333 #D8C663 #E4D894

Accessibility & contrast

On white

2.10
#CAB333 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.01
#CAB333 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB333
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB333#FFFFFF#000000##000000
##CAB3331.002.1010.0110.01
#FFFFFF2.101.0021.0021.00
#00000010.0121.001.001.00
##00000010.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE1B
Deuteranopia (green-blind)
#CBB63B
Tritanopia (blue-blind)
#DAA59A
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cab333;
/* rgb */ color: rgb(202, 179, 51);
/* oklch */ color: oklch(76.5% 0.142 98.6);
Tailwind
colors: {
  custom: {
    50: '#dec974',
    500: '#cab333',
    950: '#000000',
  },
}
SCSS
$custom: #cab333;
$custom-light: #dec974;
$custom-dark: #000000;
JSON
{
  "hex": "#cab333",
  "rgb": {
    "r": 202,
    "g": 179,
    "b": 51
  },
  "hsl": {
    "h": 50.861,
    "s": 59.684,
    "l": 49.608
  },
  "oklch": {
    "l": 0.76477,
    "c": 0.14242,
    "h": 98.6
  },
  "luminance": 0.45036
}

Semantic roles & 50–950 ramp

primary
#CAB333
secondary
#8A94CF
accent
#5DE345
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB333

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

Preview Lab → · Contrast checker → · Palette generator →

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