#BAB252#BAB252

#BAB252 is a light, moderate yellow. Relative luminance 0.429; OKLCH L 75.1% C 0.118 H 104.5°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#BAB252
RGBrgb(186, 178, 82)
HSLhsl(55, 43%, 53%)
HSVhsv(55, 56%, 73%)
CMYKcmyk(0%, 4.3%, 55.9%, 27.1%)
CIE-LABlab(71.48, -9.72, 49.23)
CIE-LCHlch(71.48, 50.18, 101.17°)
OKLaboklab(75.08% -0.0296 0.1146)
OKLCHoklch(75.08% 0.118 104.5)
XYZxyz(37.6943, 42.8903, 14.2741)
Luminance0.4289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB252 #525ABA
analogous
#BA7E52 #BAB252 #8EBA52
triadic
#BAB252 #52BAB2 #B252BA
tetradic
#BAB252 #52BA7E #525ABA #BA528E
square
#BAB252 #52BA7E #525ABA #BA528E
split-complementary
#BAB252 #528EBA #7E52BA
monochromatic
#68632A #948D3B #BAB252 #CBC57E #DDD9AA

Accessibility & contrast

On white

2.19
#BAB252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#BAB252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB252
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB252#FFFFFF#000000##000000
##BAB2521.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AC48
Deuteranopia (green-blind)
#C3B157
Tritanopia (blue-blind)
#C6A79D
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab252;
/* rgb */ color: rgb(186, 178, 82);
/* oklch */ color: oklch(75.1% 0.118 104.5);
Tailwind
colors: {
  custom: {
    50: '#d1c886',
    500: '#bab252',
    950: '#000000',
  },
}
SCSS
$custom: #bab252;
$custom-light: #d1c886;
$custom-dark: #000000;
JSON
{
  "hex": "#bab252",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 82
  },
  "hsl": {
    "h": 55.385,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.75078,
    "c": 0.11836,
    "h": 104.5
  },
  "luminance": 0.42889
}

Semantic roles & 50–950 ramp

primary
#BAB252
secondary
#9DA1CA
accent
#5FD355
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB252

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

Preview Lab → · Contrast checker → · Palette generator →

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