#CAB240#CAB240

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

Color values

HEX#CAB240
RGBrgb(202, 178, 64)
HSLhsl(50, 57%, 52%)
HSVhsv(50, 68%, 79%)
CMYKcmyk(0%, 11.9%, 68.3%, 20.8%)
CIE-LABlab(72.74, -4.08, 58.96)
CIE-LCHlch(72.74, 59.10, 93.96°)
OKLaboklab(76.36% -0.0166 0.1323)
OKLCHoklch(76.36% 0.133 97.1)
XYZxyz(41.2049, 44.7696, 11.3205)
Luminance0.4477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB240 #4058CA
analogous
#CA6D40 #CAB240 #9DCA40
triadic
#CAB240 #40CAB2 #B240CA
tetradic
#CAB240 #40CA6D #4058CA #CA409D
square
#CAB240 #40CA6D #4058CA #CA409D
split-complementary
#CAB240 #409DCA #6D40CA
monochromatic
#70621F #A08C2C #CAB240 #D7C570 #E5D9A0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAB240#FFFFFF#000000##000000
##CAB2401.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)
#C3AE31
Deuteranopia (green-blind)
#CAB646
Tritanopia (blue-blind)
#DAA59B
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cab240;
/* rgb */ color: rgb(202, 178, 64);
/* oklch */ color: oklch(76.4% 0.133 97.1);
Tailwind
colors: {
  custom: {
    50: '#dec87b',
    500: '#cab240',
    950: '#000000',
  },
}
SCSS
$custom: #cab240;
$custom-light: #dec87b;
$custom-dark: #000000;
JSON
{
  "hex": "#cab240",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 49.565,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.76364,
    "c": 0.13333,
    "h": 97.1
  },
  "luminance": 0.44768
}

Semantic roles & 50–950 ramp

primary
#CAB240
secondary
#959FD1
accent
#62E048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB240

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

Preview Lab → · Contrast checker → · Palette generator →

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