#CAB839#CAB839

#CAB839 is a light, vivid yellow. Relative luminance 0.471; OKLCH L 77.6% C 0.143 H 101.0°. Best body text is #000000 at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#CAB839
RGBrgb(202, 184, 57)
HSLhsl(53, 58%, 51%)
HSVhsv(53, 72%, 79%)
CMYKcmyk(0%, 8.9%, 71.8%, 20.8%)
CIE-LABlab(74.28, -7.56, 63.23)
CIE-LCHlch(74.28, 63.68, 96.82°)
OKLaboklab(77.57% -0.0273 0.1401)
OKLCHoklch(77.57% 0.143 101)
XYZxyz(42.2381, 47.1349, 10.7432)
Luminance0.4713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB839 #394BCA
analogous
#CA6F39 #CAB839 #93CA39
triadic
#CAB839 #39CAB8 #B839CA
tetradic
#CAB839 #39CA6F #394BCA #CA3993
square
#CAB839 #39CA6F #394BCA #CA3993
split-complementary
#CAB839 #3993CA #6F39CA
monochromatic
#6C621D #9C8E2A #CAB839 #D7C969 #E4DB9A

Accessibility & contrast

On white

2.01
#CAB839 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.43
#CAB839 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB839
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB839#FFFFFF#000000##000000
##CAB8391.002.0110.4310.43
#FFFFFF2.011.0021.0021.00
#00000010.4321.001.001.00
##00000010.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B324
Deuteranopia (green-blind)
#CEBA41
Tritanopia (blue-blind)
#D9AB9F
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #cab839;
/* rgb */ color: rgb(202, 184, 57);
/* oklch */ color: oklch(77.6% 0.143 101.0);
Tailwind
colors: {
  custom: {
    50: '#decd78',
    500: '#cab839',
    950: '#000000',
  },
}
SCSS
$custom: #cab839;
$custom-light: #decd78;
$custom-dark: #000000;
JSON
{
  "hex": "#cab839",
  "rgb": {
    "r": 202,
    "g": 184,
    "b": 57
  },
  "hsl": {
    "h": 52.552,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.77567,
    "c": 0.14273,
    "h": 101
  },
  "luminance": 0.47133
}

Semantic roles & 50–950 ramp

primary
#CAB839
secondary
#8F97D0
accent
#5AE147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB839

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

Preview Lab → · Contrast checker → · Palette generator →

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