#CAB242#CAB242

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

Color values

HEX#CAB242
RGBrgb(202, 178, 66)
HSLhsl(49, 56%, 53%)
HSVhsv(49, 67%, 79%)
CMYKcmyk(0%, 11.9%, 67.3%, 20.8%)
CIE-LABlab(72.76, -3.97, 58.14)
CIE-LCHlch(72.76, 58.28, 93.90°)
OKLaboklab(76.38% -0.016 0.1309)
OKLCHoklch(76.38% 0.132 97)
XYZxyz(41.2628, 44.7927, 11.6256)
Luminance0.4479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB242 #425ACA
analogous
#CA6E42 #CAB242 #9ECA42
triadic
#CAB242 #42CAB2 #B242CA
tetradic
#CAB242 #42CA6E #425ACA #CA429E
square
#CAB242 #42CA6E #425ACA #CA429E
split-complementary
#CAB242 #429ECA #6E42CA
monochromatic
#726320 #A28D2D #CAB242 #D7C572 #E5D9A2

Accessibility & contrast

On white

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

On black

9.96
#CAB242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB242
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB242#FFFFFF#000000##000000
##CAB2421.002.119.969.96
#FFFFFF2.111.0021.0021.00
#0000009.9621.001.001.00
##0000009.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE33
Deuteranopia (green-blind)
#CAB648
Tritanopia (blue-blind)
#DAA59B
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cab242;
/* rgb */ color: rgb(202, 178, 66);
/* oklch */ color: oklch(76.4% 0.132 97.0);
Tailwind
colors: {
  custom: {
    50: '#dec87c',
    500: '#cab242',
    950: '#000000',
  },
}
SCSS
$custom: #cab242;
$custom-light: #dec87c;
$custom-dark: #000000;
JSON
{
  "hex": "#cab242",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 49.412,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.76381,
    "c": 0.13189,
    "h": 97
  },
  "luminance": 0.44791
}

Semantic roles & 50–950 ramp

primary
#CAB242
secondary
#96A1D1
accent
#63DF48
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB242

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

Preview Lab → · Contrast checker → · Palette generator →

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