#BAB148#BAB148

#BAB148 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.8% C 0.126 H 104.4°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#BAB148
RGBrgb(186, 177, 72)
HSLhsl(55, 45%, 51%)
HSVhsv(55, 61%, 73%)
CMYKcmyk(0%, 4.8%, 61.3%, 27.1%)
CIE-LABlab(71.11, -9.94, 53.39)
CIE-LCHlch(71.11, 54.30, 100.54°)
OKLaboklab(74.76% -0.0314 0.1222)
OKLCHoklch(74.76% 0.126 104.4)
XYZxyz(37.1429, 42.3526, 12.3480)
Luminance0.4235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB148 #4851BA
analogous
#BA7848 #BAB148 #8ABA48
triadic
#BAB148 #48BAB1 #B148BA
tetradic
#BAB148 #48BA78 #4851BA #BA488A
square
#BAB148 #48BA78 #4851BA #BA488A
split-complementary
#BAB148 #488ABA #7848BA
monochromatic
#625E25 #8F8836 #BAB148 #CBC474 #DCD7A1

Accessibility & contrast

On white

2.22
#BAB148 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#BAB148 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB148
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB148#FFFFFF#000000##000000
##BAB1481.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB3C
Deuteranopia (green-blind)
#C3B04E
Tritanopia (blue-blind)
#C7A69B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab148;
/* rgb */ color: rgb(186, 177, 72);
/* oklch */ color: oklch(74.8% 0.126 104.4);
Tailwind
colors: {
  custom: {
    50: '#d1c87f',
    500: '#bab148',
    950: '#000000',
  },
}
SCSS
$custom: #bab148;
$custom-light: #d1c87f;
$custom-dark: #000000;
JSON
{
  "hex": "#bab148",
  "rgb": {
    "r": 186,
    "g": 177,
    "b": 72
  },
  "hsl": {
    "h": 55.263,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.74755,
    "c": 0.12617,
    "h": 104.4
  },
  "luminance": 0.42351
}

Semantic roles & 50–950 ramp

primary
#BAB148
secondary
#969AC8
accent
#5DD553
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB148

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

Preview Lab → · Contrast checker → · Palette generator →

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