#BAB54B#BAB54B

#BAB54B is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.6% C 0.128 H 106.5°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#BAB54B
RGBrgb(186, 181, 75)
HSLhsl(57, 45%, 51%)
HSVhsv(57, 60%, 73%)
CMYKcmyk(0%, 2.7%, 59.7%, 27.1%)
CIE-LABlab(72.23, -11.80, 53.27)
CIE-LCHlch(72.23, 54.56, 102.49°)
OKLaboklab(75.65% -0.0364 0.1224)
OKLCHoklch(75.65% 0.128 106.5)
XYZxyz(38.0448, 43.9960, 13.1433)
Luminance0.4400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB54B #4B50BA
analogous
#BA7D4B #BAB54B #87BA4B
triadic
#BAB54B #4BBAB5 #B54BBA
tetradic
#BAB54B #4BBA7D #4B50BA #BA4B87
square
#BAB54B #4BBA7D #4B50BA #BA4B87
split-complementary
#BAB54B #4B87BA #7D4BBA
monochromatic
#646126 #908C37 #BAB54B #CBC777 #DCD9A3

Accessibility & contrast

On white

2.14
#BAB54B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#BAB54B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB54B
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB54B#FFFFFF#000000##000000
##BAB54B1.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF3F
Deuteranopia (green-blind)
#C6B351
Tritanopia (blue-blind)
#C7AA9E
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab54b;
/* rgb */ color: rgb(186, 181, 75);
/* oklch */ color: oklch(75.6% 0.128 106.5);
Tailwind
colors: {
  custom: {
    50: '#d1ca81',
    500: '#bab54b',
    950: '#000000',
  },
}
SCSS
$custom: #bab54b;
$custom-light: #d1ca81;
$custom-dark: #000000;
JSON
{
  "hex": "#bab54b",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 75
  },
  "hsl": {
    "h": 57.297,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.7565,
    "c": 0.12765,
    "h": 106.5
  },
  "luminance": 0.43995
}

Semantic roles & 50–950 ramp

primary
#BAB54B
secondary
#989AC9
accent
#59D454
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB54B

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

Preview Lab → · Contrast checker → · Palette generator →

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