#CBAB40#CBAB40

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

Color values

HEX#CBAB40
RGBrgb(203, 171, 64)
HSLhsl(46, 57%, 52%)
HSVhsv(46, 68%, 80%)
CMYKcmyk(0%, 15.8%, 68.5%, 20.4%)
CIE-LABlab(71.00, 0.04, 57.20)
CIE-LCHlch(71.00, 57.20, 89.96°)
OKLaboklab(75.02% -0.0048 0.1285)
OKLCHoklch(75.02% 0.129 92.2)
XYZxyz(40.1190, 42.1948, 10.8808)
Luminance0.4219 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAB40 #4060CB
analogous
#CB6540 #CBAB40 #A6CB40
triadic
#CBAB40 #40CBAB #AB40CB
tetradic
#CBAB40 #40CB65 #4060CB #CB40A6
square
#CBAB40 #40CB65 #4060CB #CB40A6
split-complementary
#CBAB40 #40A6CB #6540CB
monochromatic
#725F1F #A2872C #CBAB40 #D8C070 #E5D5A0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CBAB40#FFFFFF#000000##000000
##CBAB401.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)
#BDA832
Deuteranopia (green-blind)
#C5B245
Tritanopia (blue-blind)
#DB9E95
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cbab40;
/* rgb */ color: rgb(203, 171, 64);
/* oklch */ color: oklch(75.0% 0.129 92.2);
Tailwind
colors: {
  custom: {
    50: '#dfc37a',
    500: '#cbab40',
    950: '#000000',
  },
}
SCSS
$custom: #cbab40;
$custom-light: #dfc37a;
$custom-dark: #000000;
JSON
{
  "hex": "#cbab40",
  "rgb": {
    "r": 203,
    "g": 171,
    "b": 64
  },
  "hsl": {
    "h": 46.187,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.75015,
    "c": 0.12863,
    "h": 92.2
  },
  "luminance": 0.42192
}

Semantic roles & 50–950 ramp

primary
#CBAB40
secondary
#95A3D2
accent
#6BE047
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CBAB40

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

Preview Lab → · Contrast checker → · Palette generator →

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