#BAB952#BAB952

#BAB952 is a light, vivid yellow. Relative luminance 0.457; OKLCH L 76.6% C 0.126 H 108.5°. Best body text is #000000 at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#BAB952
RGBrgb(186, 185, 82)
HSLhsl(59, 43%, 53%)
HSVhsv(59, 56%, 73%)
CMYKcmyk(0%, 0.5%, 55.9%, 27.1%)
CIE-LABlab(73.38, -13.33, 51.39)
CIE-LCHlch(73.38, 53.09, 104.54°)
OKLaboklab(76.59% -0.0399 0.1192)
OKLCHoklch(76.59% 0.126 108.5)
XYZxyz(39.1227, 45.7473, 14.7502)
Luminance0.4575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB952 #5253BA
analogous
#BA8552 #BAB952 #87BA52
triadic
#BAB952 #52BAB9 #B952BA
tetradic
#BAB952 #52BA85 #5253BA #BA5287
square
#BAB952 #52BA85 #5253BA #BA5287
split-complementary
#BAB952 #5287BA #8552BA
monochromatic
#68672A #94933B #BAB952 #CBCB7E #DDDCAA

Accessibility & contrast

On white

2.07
#BAB952 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.15
#BAB952 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB952
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB952#FFFFFF#000000##000000
##BAB9521.002.0710.1510.15
#FFFFFF2.071.0021.0021.00
#00000010.1521.001.001.00
##00000010.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B247
Deuteranopia (green-blind)
#C8B658
Tritanopia (blue-blind)
#C6AEA2
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #bab952;
/* rgb */ color: rgb(186, 185, 82);
/* oklch */ color: oklch(76.6% 0.126 108.5);
Tailwind
colors: {
  custom: {
    50: '#d1cd86',
    500: '#bab952',
    950: '#000000',
  },
}
SCSS
$custom: #bab952;
$custom-light: #d1cd86;
$custom-dark: #000000;
JSON
{
  "hex": "#bab952",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 82
  },
  "hsl": {
    "h": 59.423,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.76591,
    "c": 0.12573,
    "h": 108.5
  },
  "luminance": 0.45746
}

Semantic roles & 50–950 ramp

primary
#BAB952
secondary
#9D9ECA
accent
#56D355
background
#FDFCF8
surface
#FAF9F0
border
#D3D2CB
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB952

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

Preview Lab → · Contrast checker → · Palette generator →

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