#CBAB39#CBAB39

#CBAB39 is a light, vivid yellow. Relative luminance 0.421; OKLCH L 75.0% C 0.133 H 92.9°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#CBAB39
RGBrgb(203, 171, 57)
HSLhsl(47, 58%, 51%)
HSVhsv(47, 72%, 80%)
CMYKcmyk(0%, 15.8%, 71.9%, 20.4%)
CIE-LABlab(70.95, -0.32, 60.00)
CIE-LCHlch(70.95, 60.00, 90.30°)
OKLaboklab(74.96% -0.0067 0.1332)
OKLCHoklch(74.96% 0.133 92.9)
XYZxyz(39.9322, 42.1200, 9.8968)
Luminance0.4212 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAB39 #3959CB
analogous
#CB6239 #CBAB39 #A2CB39
triadic
#CBAB39 #39CBAB #AB39CB
tetradic
#CBAB39 #39CB62 #3959CB #CB39A2
square
#CBAB39 #39CB62 #3959CB #CB39A2
split-complementary
#CBAB39 #39A2CB #6239CB
monochromatic
#6D5B1D #9D8429 #CBAB39 #D8C069 #E4D49A

Accessibility & contrast

On white

2.23
#CBAB39 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.42
#CBAB39 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAB39
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAB39#FFFFFF#000000##000000
##CBAB391.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA828
Deuteranopia (green-blind)
#C5B23F
Tritanopia (blue-blind)
#DB9D94
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cbab39;
/* rgb */ color: rgb(203, 171, 57);
/* oklch */ color: oklch(75.0% 0.133 92.9);
Tailwind
colors: {
  custom: {
    50: '#dfc376',
    500: '#cbab39',
    950: '#000000',
  },
}
SCSS
$custom: #cbab39;
$custom-light: #dfc376;
$custom-dark: #000000;
JSON
{
  "hex": "#cbab39",
  "rgb": {
    "r": 203,
    "g": 171,
    "b": 57
  },
  "hsl": {
    "h": 46.849,
    "s": 58.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.74958,
    "c": 0.13338,
    "h": 92.9
  },
  "luminance": 0.42118
}

Semantic roles & 50–950 ramp

primary
#CBAB39
secondary
#909ED0
accent
#68E246
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CBAB39

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

Preview Lab → · Contrast checker → · Palette generator →

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