#BAB152#BAB152

#BAB152 is a light, moderate yellow. Relative luminance 0.425; OKLCH L 74.9% C 0.117 H 103.9°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#BAB152
RGBrgb(186, 177, 82)
HSLhsl(55, 43%, 53%)
HSVhsv(55, 56%, 73%)
CMYKcmyk(0%, 4.8%, 55.9%, 27.1%)
CIE-LABlab(71.21, -9.20, 48.92)
CIE-LCHlch(71.21, 49.78, 100.65°)
OKLaboklab(74.86% -0.0282 0.1139)
OKLCHoklch(74.86% 0.117 103.9)
XYZxyz(37.4960, 42.4938, 14.2080)
Luminance0.4249 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB152 #525BBA
analogous
#BA7D52 #BAB152 #8FBA52
triadic
#BAB152 #52BAB1 #B152BA
tetradic
#BAB152 #52BA7D #525BBA #BA528F
square
#BAB152 #52BA7D #525BBA #BA528F
split-complementary
#BAB152 #528FBA #7D52BA
monochromatic
#68632A #948C3B #BAB152 #CBC57E #DDD8AA

Accessibility & contrast

On white

2.21
#BAB152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.50
#BAB152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB152
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB152#FFFFFF#000000##000000
##BAB1521.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAC48
Deuteranopia (green-blind)
#C2B157
Tritanopia (blue-blind)
#C6A69C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab152;
/* rgb */ color: rgb(186, 177, 82);
/* oklch */ color: oklch(74.9% 0.117 103.9);
Tailwind
colors: {
  custom: {
    50: '#d1c886',
    500: '#bab152',
    950: '#000000',
  },
}
SCSS
$custom: #bab152;
$custom-light: #d1c886;
$custom-dark: #000000;
JSON
{
  "hex": "#bab152",
  "rgb": {
    "r": 186,
    "g": 177,
    "b": 82
  },
  "hsl": {
    "h": 54.808,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.74864,
    "c": 0.11736,
    "h": 103.9
  },
  "luminance": 0.42493
}

Semantic roles & 50–950 ramp

primary
#BAB152
secondary
#9DA1CA
accent
#60D355
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB152

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

Preview Lab → · Contrast checker → · Palette generator →

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