#BAB451#BAB451

#BAB451 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.5% C 0.121 H 105.8°. Best body text is #000000 at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#BAB451
RGBrgb(186, 180, 81)
HSLhsl(57, 43%, 52%)
HSVhsv(57, 56%, 73%)
CMYKcmyk(0%, 3.2%, 56.5%, 27.1%)
CIE-LABlab(72.01, -10.83, 50.30)
CIE-LCHlch(72.01, 51.45, 102.16°)
OKLaboklab(75.5% -0.0329 0.1168)
OKLCHoklch(75.5% 0.121 105.8)
XYZxyz(38.0573, 43.6769, 14.2087)
Luminance0.4368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB451 #5157BA
analogous
#BA7F51 #BAB451 #8CBA51
triadic
#BAB451 #51BAB4 #B451BA
tetradic
#BAB451 #51BA7F #5157BA #BA518C
square
#BAB451 #51BA7F #5157BA #BA518C
split-complementary
#BAB451 #518CBA #7F51BA
monochromatic
#686429 #938E3A #BAB451 #CBC77D #DDDAA9

Accessibility & contrast

On white

2.16
#BAB451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.74
#BAB451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB451
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB451#FFFFFF#000000##000000
##BAB4511.002.169.749.74
#FFFFFF2.161.0021.0021.00
#0000009.7421.001.001.00
##0000009.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AE47
Deuteranopia (green-blind)
#C4B356
Tritanopia (blue-blind)
#C6A99E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab451;
/* rgb */ color: rgb(186, 180, 81);
/* oklch */ color: oklch(75.5% 0.121 105.8);
Tailwind
colors: {
  custom: {
    50: '#d1ca85',
    500: '#bab451',
    950: '#000000',
  },
}
SCSS
$custom: #bab451;
$custom-light: #d1ca85;
$custom-dark: #000000;
JSON
{
  "hex": "#bab451",
  "rgb": {
    "r": 186,
    "g": 180,
    "b": 81
  },
  "hsl": {
    "h": 56.571,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.75498,
    "c": 0.12133,
    "h": 105.8
  },
  "luminance": 0.43676
}

Semantic roles & 50–950 ramp

primary
#BAB451
secondary
#9D9FCA
accent
#5CD355
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB451

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

Preview Lab → · Contrast checker → · Palette generator →

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