#CAB239#CAB239

#CAB239 is a light, vivid yellow. Relative luminance 0.447; OKLCH L 76.3% C 0.138 H 97.7°. Best body text is #000000 at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#CAB239
RGBrgb(202, 178, 57)
HSLhsl(50, 58%, 51%)
HSVhsv(50, 72%, 79%)
CMYKcmyk(0%, 11.9%, 71.8%, 20.8%)
CIE-LABlab(72.69, -4.44, 61.68)
CIE-LCHlch(72.69, 61.84, 94.12°)
OKLaboklab(76.31% -0.0184 0.1368)
OKLCHoklch(76.31% 0.138 97.7)
XYZxyz(41.0180, 44.6948, 10.3365)
Luminance0.4469 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB239 #3951CA
analogous
#CA6939 #CAB239 #99CA39
triadic
#CAB239 #39CAB2 #B239CA
tetradic
#CAB239 #39CA69 #3951CA #CA3999
square
#CAB239 #39CA69 #3951CA #CA3999
split-complementary
#CAB239 #3999CA #6939CA
monochromatic
#6C5F1D #9C892A #CAB239 #D7C569 #E4D89A

Accessibility & contrast

On white

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

On black

9.94
#CAB239 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB239
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB239#FFFFFF#000000##000000
##CAB2391.002.119.949.94
#FFFFFF2.111.0021.0021.00
#0000009.9421.001.001.00
##0000009.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE26
Deuteranopia (green-blind)
#CAB640
Tritanopia (blue-blind)
#DAA59A
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cab239;
/* rgb */ color: rgb(202, 178, 57);
/* oklch */ color: oklch(76.3% 0.138 97.7);
Tailwind
colors: {
  custom: {
    50: '#dec877',
    500: '#cab239',
    950: '#000000',
  },
}
SCSS
$custom: #cab239;
$custom-light: #dec877;
$custom-dark: #000000;
JSON
{
  "hex": "#cab239",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 57
  },
  "hsl": {
    "h": 50.069,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.76309,
    "c": 0.13804,
    "h": 97.7
  },
  "luminance": 0.44693
}

Semantic roles & 50–950 ramp

primary
#CAB239
secondary
#8F9AD0
accent
#60E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB239

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

Preview Lab → · Contrast checker → · Palette generator →

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