#CBAB3A#CBAB3A

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

Color values

HEX#CBAB3A
RGBrgb(203, 171, 58)
HSLhsl(47, 58%, 51%)
HSVhsv(47, 71%, 80%)
CMYKcmyk(0%, 15.8%, 71.4%, 20.4%)
CIE-LABlab(70.96, -0.27, 59.61)
CIE-LCHlch(70.96, 59.61, 90.26°)
OKLaboklab(74.97% -0.0064 0.1326)
OKLCHoklch(74.97% 0.133 92.8)
XYZxyz(39.9574, 42.1301, 10.0295)
Luminance0.4213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAB3A #3A5ACB
analogous
#CB623A #CBAB3A #A2CB3A
triadic
#CBAB3A #3ACBAB #AB3ACB
tetradic
#CBAB3A #3ACB62 #3A5ACB #CB3AA2
square
#CBAB3A #3ACB62 #3A5ACB #CB3AA2
split-complementary
#CBAB3A #3AA2CB #623ACB
monochromatic
#6E5C1D #9E842A #CBAB3A #D8C06A #E5D49B

Accessibility & contrast

On white

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

On black

9.43
#CBAB3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAB3A
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAB3A#FFFFFF#000000##000000
##CBAB3A1.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cbab3a;
/* rgb */ color: rgb(203, 171, 58);
/* oklch */ color: oklch(75.0% 0.133 92.8);
Tailwind
colors: {
  custom: {
    50: '#dfc377',
    500: '#cbab3a',
    950: '#000000',
  },
}
SCSS
$custom: #cbab3a;
$custom-light: #dfc377;
$custom-dark: #000000;
JSON
{
  "hex": "#cbab3a",
  "rgb": {
    "r": 203,
    "g": 171,
    "b": 58
  },
  "hsl": {
    "h": 46.759,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.74965,
    "c": 0.13273,
    "h": 92.8
  },
  "luminance": 0.42128
}

Semantic roles & 50–950 ramp

primary
#CBAB3A
secondary
#909FD0
accent
#69E146
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CBAB3A

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

Preview Lab → · Contrast checker → · Palette generator →

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