#CBAB42#CBAB42

#CBAB42 is a light, vivid yellow. Relative luminance 0.422; OKLCH L 75.0% C 0.127 H 91.9°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#CBAB42
RGBrgb(203, 171, 66)
HSLhsl(46, 57%, 53%)
HSVhsv(46, 67%, 80%)
CMYKcmyk(0%, 15.8%, 67.5%, 20.4%)
CIE-LABlab(71.02, 0.16, 56.37)
CIE-LCHlch(71.02, 56.37, 89.84°)
OKLaboklab(75.03% -0.0043 0.1271)
OKLCHoklch(75.03% 0.127 91.9)
XYZxyz(40.1769, 42.2179, 11.1859)
Luminance0.4222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAB42 #4262CB
analogous
#CB6642 #CBAB42 #A7CB42
triadic
#CBAB42 #42CBAB #AB42CB
tetradic
#CBAB42 #42CB66 #4262CB #CB42A7
square
#CBAB42 #42CB66 #4262CB #CB42A7
split-complementary
#CBAB42 #42A7CB #6642CB
monochromatic
#736020 #A3872D #CBAB42 #D8C072 #E5D6A2

Accessibility & contrast

On white

2.22
#CBAB42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.44
#CBAB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAB42
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAB42#FFFFFF#000000##000000
##CBAB421.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA835
Deuteranopia (green-blind)
#C5B247
Tritanopia (blue-blind)
#DB9E95
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cbab42;
/* rgb */ color: rgb(203, 171, 66);
/* oklch */ color: oklch(75.0% 0.127 91.9);
Tailwind
colors: {
  custom: {
    50: '#dec37c',
    500: '#cbab42',
    950: '#000000',
  },
}
SCSS
$custom: #cbab42;
$custom-light: #dec37c;
$custom-dark: #000000;
JSON
{
  "hex": "#cbab42",
  "rgb": {
    "r": 203,
    "g": 171,
    "b": 66
  },
  "hsl": {
    "h": 45.985,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.75032,
    "c": 0.12719,
    "h": 91.9
  },
  "luminance": 0.42216
}

Semantic roles & 50–950 ramp

primary
#CBAB42
secondary
#97A5D2
accent
#6BE048
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CBAB42

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

Preview Lab → · Contrast checker → · Palette generator →

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