#CAB938#CAB938

#CAB938 is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.8% C 0.144 H 101.6°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#CAB938
RGBrgb(202, 185, 56)
HSLhsl(53, 58%, 51%)
HSVhsv(53, 72%, 79%)
CMYKcmyk(0%, 8.4%, 72.3%, 20.8%)
CIE-LABlab(74.54, -8.13, 63.85)
CIE-LCHlch(74.54, 64.37, 97.26°)
OKLaboklab(77.77% -0.029 0.1412)
OKLCHoklch(77.77% 0.144 101.6)
XYZxyz(42.4218, 47.5419, 10.6826)
Luminance0.4754 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB938 #3849CA
analogous
#CA7038 #CAB938 #92CA38
triadic
#CAB938 #38CAB9 #B938CA
tetradic
#CAB938 #38CA70 #3849CA #CA3892
square
#CAB938 #38CA70 #3849CA #CA3892
split-complementary
#CAB938 #3892CA #7038CA
monochromatic
#6B621D #9B8E29 #CAB938 #D7CA68 #E4DB99

Accessibility & contrast

On white

2.00
#CAB938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.51
#CAB938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB938
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB938#FFFFFF#000000##000000
##CAB9381.002.0010.5110.51
#FFFFFF2.001.0021.0021.00
#00000010.5121.001.001.00
##00000010.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB322
Deuteranopia (green-blind)
#CFBA41
Tritanopia (blue-blind)
#D9ACA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #cab938;
/* rgb */ color: rgb(202, 185, 56);
/* oklch */ color: oklch(77.8% 0.144 101.6);
Tailwind
colors: {
  custom: {
    50: '#decd77',
    500: '#cab938',
    950: '#000000',
  },
}
SCSS
$custom: #cab938;
$custom-light: #decd77;
$custom-dark: #000000;
JSON
{
  "hex": "#cab938",
  "rgb": {
    "r": 202,
    "g": 185,
    "b": 56
  },
  "hsl": {
    "h": 53.014,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.77771,
    "c": 0.14417,
    "h": 101.6
  },
  "luminance": 0.4754
}

Semantic roles & 50–950 ramp

primary
#CAB938
secondary
#8E96CF
accent
#59E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB938

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

Preview Lab → · Contrast checker → · Palette generator →

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