#CBAB48#CBAB48

#CBAB48 is a light, vivid yellow. Relative luminance 0.423; OKLCH L 75.1% C 0.123 H 91.2°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#CBAB48
RGBrgb(203, 171, 72)
HSLhsl(45, 56%, 54%)
HSVhsv(45, 65%, 80%)
CMYKcmyk(0%, 15.8%, 64.5%, 20.4%)
CIE-LABlab(71.07, 0.51, 53.79)
CIE-LCHlch(71.07, 53.80, 89.45°)
OKLaboklab(75.09% -0.0025 0.1226)
OKLCHoklch(75.09% 0.123 91.2)
XYZxyz(40.3632, 42.2925, 12.1669)
Luminance0.4229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAB48 #4868CB
analogous
#CB6A48 #CBAB48 #A9CB48
triadic
#CBAB48 #48CBAB #AB48CB
tetradic
#CBAB48 #48CB6A #4868CB #CB48A9
square
#CBAB48 #48CB6A #4868CB #CB48A9
split-complementary
#CBAB48 #48A9CB #6A48CB
monochromatic
#776222 #A6892F #CBAB48 #D9C178 #E6D7A7

Accessibility & contrast

On white

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

On black

9.46
#CBAB48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAB48
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAB48#FFFFFF#000000##000000
##CBAB481.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA93D
Deuteranopia (green-blind)
#C4B24C
Tritanopia (blue-blind)
#DB9E96
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cbab48;
/* rgb */ color: rgb(203, 171, 72);
/* oklch */ color: oklch(75.1% 0.123 91.2);
Tailwind
colors: {
  custom: {
    50: '#dec37f',
    500: '#cbab48',
    950: '#000000',
  },
}
SCSS
$custom: #cbab48;
$custom-light: #dec37f;
$custom-dark: #000000;
JSON
{
  "hex": "#cbab48",
  "rgb": {
    "r": 203,
    "g": 171,
    "b": 72
  },
  "hsl": {
    "h": 45.344,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.75089,
    "c": 0.12264,
    "h": 91.2
  },
  "luminance": 0.4229
}

Semantic roles & 50–950 ramp

primary
#CBAB48
secondary
#9BA9D3
accent
#6DDF49
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CBAB48

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

Preview Lab → · Contrast checker → · Palette generator →

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