#CBAB45#CBAB45

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

Color values

HEX#CBAB45
RGBrgb(203, 171, 69)
HSLhsl(46, 56%, 53%)
HSVhsv(46, 66%, 80%)
CMYKcmyk(0%, 15.8%, 66%, 20.4%)
CIE-LABlab(71.05, 0.33, 55.09)
CIE-LCHlch(71.05, 55.09, 89.66°)
OKLaboklab(75.06% -0.0034 0.1249)
OKLCHoklch(75.06% 0.125 91.6)
XYZxyz(40.2677, 42.2543, 11.6640)
Luminance0.4225 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAB45 #4565CB
analogous
#CB6845 #CBAB45 #A8CB45
triadic
#CBAB45 #45CBAB #AB45CB
tetradic
#CBAB45 #45CB68 #4565CB #CB45A8
square
#CBAB45 #45CB68 #4565CB #CB45A8
split-complementary
#CBAB45 #45A8CB #6845CB
monochromatic
#756121 #A5882E #CBAB45 #D8C175 #E6D6A5

Accessibility & contrast

On white

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

On black

9.45
#CBAB45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAB45
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAB45#FFFFFF#000000##000000
##CBAB451.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cbab45;
/* rgb */ color: rgb(203, 171, 69);
/* oklch */ color: oklch(75.1% 0.125 91.6);
Tailwind
colors: {
  custom: {
    50: '#dec37d',
    500: '#cbab45',
    950: '#000000',
  },
}
SCSS
$custom: #cbab45;
$custom-light: #dec37d;
$custom-dark: #000000;
JSON
{
  "hex": "#cbab45",
  "rgb": {
    "r": 203,
    "g": 171,
    "b": 69
  },
  "hsl": {
    "h": 45.672,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.7506,
    "c": 0.12496,
    "h": 91.6
  },
  "luminance": 0.42252
}

Semantic roles & 50–950 ramp

primary
#CBAB45
secondary
#99A7D3
accent
#6CE048
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CBAB45

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

Preview Lab → · Contrast checker → · Palette generator →

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