#CAB040#CAB040

#CAB040 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.9% C 0.132 H 95.9°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#CAB040
RGBrgb(202, 176, 64)
HSLhsl(49, 57%, 52%)
HSVhsv(49, 68%, 79%)
CMYKcmyk(0%, 12.9%, 68.3%, 20.8%)
CIE-LABlab(72.21, -3.03, 58.42)
CIE-LCHlch(72.21, 58.49, 92.97°)
OKLaboklab(75.95% -0.0136 0.1312)
OKLCHoklch(75.95% 0.132 95.9)
XYZxyz(40.8098, 43.9795, 11.1888)
Luminance0.4398 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB040 #405ACA
analogous
#CA6B40 #CAB040 #9FCA40
triadic
#CAB040 #40CAB0 #B040CA
tetradic
#CAB040 #40CA6B #405ACA #CA409F
square
#CAB040 #40CA6B #405ACA #CA409F
split-complementary
#CAB040 #409FCA #6B40CA
monochromatic
#70611F #A08A2C #CAB040 #D7C470 #E5D8A0

Accessibility & contrast

On white

2.14
#CAB040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#CAB040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB040
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB040#FFFFFF#000000##000000
##CAB0401.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC31
Deuteranopia (green-blind)
#C8B546
Tritanopia (blue-blind)
#DAA399
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cab040;
/* rgb */ color: rgb(202, 176, 64);
/* oklch */ color: oklch(75.9% 0.132 95.9);
Tailwind
colors: {
  custom: {
    50: '#dec77b',
    500: '#cab040',
    950: '#000000',
  },
}
SCSS
$custom: #cab040;
$custom-light: #dec77b;
$custom-dark: #000000;
JSON
{
  "hex": "#cab040",
  "rgb": {
    "r": 202,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 48.696,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.75949,
    "c": 0.13185,
    "h": 95.9
  },
  "luminance": 0.43977
}

Semantic roles & 50–950 ramp

primary
#CAB040
secondary
#95A0D1
accent
#65E048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB040

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

Preview Lab → · Contrast checker → · Palette generator →

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