#CBAB38#CBAB38

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

Color values

HEX#CBAB38
RGBrgb(203, 171, 56)
HSLhsl(47, 59%, 51%)
HSVhsv(47, 72%, 80%)
CMYKcmyk(0%, 15.8%, 72.4%, 20.4%)
CIE-LABlab(70.95, -0.37, 60.38)
CIE-LCHlch(70.95, 60.38, 90.35°)
OKLaboklab(74.95% -0.0069 0.1338)
OKLCHoklch(74.95% 0.134 93)
XYZxyz(39.9075, 42.1102, 9.7667)
Luminance0.4211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAB38 #3858CB
analogous
#CB6138 #CBAB38 #A1CB38
triadic
#CBAB38 #38CBAB #AB38CB
tetradic
#CBAB38 #38CB61 #3858CB #CB38A1
square
#CBAB38 #38CB61 #3858CB #CB38A1
split-complementary
#CBAB38 #38A1CB #6138CB
monochromatic
#6C5B1C #9D8429 #CBAB38 #D8BF69 #E4D499

Accessibility & contrast

On white

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

On black

9.42
#CBAB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAB38
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAB38#FFFFFF#000000##000000
##CBAB381.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cbab38;
/* rgb */ color: rgb(203, 171, 56);
/* oklch */ color: oklch(75.0% 0.134 93.0);
Tailwind
colors: {
  custom: {
    50: '#dfc376',
    500: '#cbab38',
    950: '#000000',
  },
}
SCSS
$custom: #cbab38;
$custom-light: #dfc376;
$custom-dark: #000000;
JSON
{
  "hex": "#cbab38",
  "rgb": {
    "r": 203,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 46.939,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.7495,
    "c": 0.13402,
    "h": 93
  },
  "luminance": 0.42108
}

Semantic roles & 50–950 ramp

primary
#CBAB38
secondary
#8F9DD0
accent
#68E246
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CBAB38

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

Preview Lab → · Contrast checker → · Palette generator →

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