#CAB03B#CAB03B

#CAB03B is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.9% C 0.135 H 96.3°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#CAB03B
RGBrgb(202, 176, 59)
HSLhsl(49, 57%, 51%)
HSVhsv(49, 71%, 79%)
CMYKcmyk(0%, 12.9%, 70.8%, 20.8%)
CIE-LABlab(72.18, -3.29, 60.40)
CIE-LCHlch(72.18, 60.49, 93.12°)
OKLaboklab(75.91% -0.0149 0.1345)
OKLCHoklch(75.91% 0.135 96.3)
XYZxyz(40.6739, 43.9251, 10.4728)
Luminance0.4392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB03B #3B55CA
analogous
#CA683B #CAB03B #9CCA3B
triadic
#CAB03B #3BCAB0 #B03BCA
tetradic
#CAB03B #3BCA68 #3B55CA #CA3B9C
square
#CAB03B #3BCA68 #3B55CA #CA3B9C
split-complementary
#CAB03B #3B9CCA #683BCA
monochromatic
#6D5F1E #9D882B #CAB03B #D7C36B #E4D79B

Accessibility & contrast

On white

2.15
#CAB03B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#CAB03B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB03B
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB03B#FFFFFF#000000##000000
##CAB03B1.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC2A
Deuteranopia (green-blind)
#C8B542
Tritanopia (blue-blind)
#DAA398
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cab03b;
/* rgb */ color: rgb(202, 176, 59);
/* oklch */ color: oklch(75.9% 0.135 96.3);
Tailwind
colors: {
  custom: {
    50: '#dec778',
    500: '#cab03b',
    950: '#000000',
  },
}
SCSS
$custom: #cab03b;
$custom-light: #dec778;
$custom-dark: #000000;
JSON
{
  "hex": "#cab03b",
  "rgb": {
    "r": 202,
    "g": 176,
    "b": 59
  },
  "hsl": {
    "h": 49.091,
    "s": 57.43,
    "l": 51.176
  },
  "oklch": {
    "l": 0.75908,
    "c": 0.13528,
    "h": 96.3
  },
  "luminance": 0.43923
}

Semantic roles & 50–950 ramp

primary
#CAB03B
secondary
#919CD0
accent
#63E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB03B

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

Preview Lab → · Contrast checker → · Palette generator →

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