#CBAB3F#CBAB3F

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

Color values

HEX#CBAB3F
RGBrgb(203, 171, 63)
HSLhsl(46, 57%, 52%)
HSVhsv(46, 69%, 80%)
CMYKcmyk(0%, 15.8%, 69%, 20.4%)
CIE-LABlab(71.00, -0.01, 57.61)
CIE-LCHlch(71.00, 57.61, 90.01°)
OKLaboklab(75.01% -0.0051 0.1292)
OKLCHoklch(75.01% 0.129 92.3)
XYZxyz(40.0908, 42.1835, 10.7322)
Luminance0.4218 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAB3F #3F5FCB
analogous
#CB653F #CBAB3F #A5CB3F
triadic
#CBAB3F #3FCBAB #AB3FCB
tetradic
#CBAB3F #3FCB65 #3F5FCB #CB3FA5
square
#CBAB3F #3FCB65 #3F5FCB #CB3FA5
split-complementary
#CBAB3F #3FA5CB #653FCB
monochromatic
#715E1F #A1862C #CBAB3F #D8C06F #E5D59F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CBAB3F#FFFFFF#000000##000000
##CBAB3F1.002.239.449.44
#FFFFFF2.231.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cbab3f;
/* rgb */ color: rgb(203, 171, 63);
/* oklch */ color: oklch(75.0% 0.129 92.3);
Tailwind
colors: {
  custom: {
    50: '#dfc37a',
    500: '#cbab3f',
    950: '#000000',
  },
}
SCSS
$custom: #cbab3f;
$custom-light: #dfc37a;
$custom-dark: #000000;
JSON
{
  "hex": "#cbab3f",
  "rgb": {
    "r": 203,
    "g": 171,
    "b": 63
  },
  "hsl": {
    "h": 46.286,
    "s": 57.377,
    "l": 52.157
  },
  "oklch": {
    "l": 0.75006,
    "c": 0.12934,
    "h": 92.3
  },
  "luminance": 0.42181
}

Semantic roles & 50–950 ramp

primary
#CBAB3F
secondary
#94A2D1
accent
#6AE147
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#161209
muted
#84817B

Preview Lab

Preview with #CBAB3F

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

Preview Lab → · Contrast checker → · Palette generator →

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