#BAB04B#BAB04B

#BAB04B is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.6% C 0.123 H 103.7°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#BAB04B
RGBrgb(186, 176, 75)
HSLhsl(55, 45%, 51%)
HSVhsv(55, 60%, 73%)
CMYKcmyk(0%, 5.4%, 59.7%, 27.1%)
CIE-LABlab(70.87, -9.21, 51.78)
CIE-LCHlch(70.87, 52.59, 100.08°)
OKLaboklab(74.57% -0.029 0.1192)
OKLCHoklch(74.57% 0.123 103.7)
XYZxyz(37.0463, 41.9991, 12.8104)
Luminance0.4200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB04B #4B55BA
analogous
#BA784B #BAB04B #8CBA4B
triadic
#BAB04B #4BBAB0 #B04BBA
tetradic
#BAB04B #4BBA78 #4B55BA #BA4B8C
square
#BAB04B #4BBA78 #4B55BA #BA4B8C
split-complementary
#BAB04B #4B8CBA #784BBA
monochromatic
#645F26 #908837 #BAB04B #CBC377 #DCD7A3

Accessibility & contrast

On white

2.23
#BAB04B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#BAB04B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB04B
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB04B#FFFFFF#000000##000000
##BAB04B1.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAA40
Deuteranopia (green-blind)
#C2B050
Tritanopia (blue-blind)
#C7A59A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #bab04b;
/* rgb */ color: rgb(186, 176, 75);
/* oklch */ color: oklch(74.6% 0.123 103.7);
Tailwind
colors: {
  custom: {
    50: '#d1c781',
    500: '#bab04b',
    950: '#000000',
  },
}
SCSS
$custom: #bab04b;
$custom-light: #d1c781;
$custom-dark: #000000;
JSON
{
  "hex": "#bab04b",
  "rgb": {
    "r": 186,
    "g": 176,
    "b": 75
  },
  "hsl": {
    "h": 54.595,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.74571,
    "c": 0.12265,
    "h": 103.7
  },
  "luminance": 0.41998
}

Semantic roles & 50–950 ramp

primary
#BAB04B
secondary
#989CC9
accent
#5FD454
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB04B

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

Preview Lab → · Contrast checker → · Palette generator →

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