#BAB327#BAB327

#BAB327 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 74.9% C 0.150 H 106.5°. Best body text is #000000 at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#BAB327
RGBrgb(186, 179, 39)
HSLhsl(57, 65%, 44%)
HSVhsv(57, 79%, 73%)
CMYKcmyk(0%, 3.8%, 79%, 27.1%)
CIE-LABlab(71.44, -12.67, 66.12)
CIE-LCHlch(71.44, 67.32, 100.85°)
OKLaboklab(74.94% -0.0424 0.1435)
OKLCHoklch(74.94% 0.15 106.5)
XYZxyz(36.7376, 42.8272, 8.2504)
Luminance0.4283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB327 #272EBA
analogous
#BA6A27 #BAB327 #78BA27
triadic
#BAB327 #27BAB3 #B327BA
tetradic
#BAB327 #27BA6A #272EBA #BA2778
square
#BAB327 #27BA6A #272EBA #BA2778
split-complementary
#BAB327 #2778BA #6A27BA
monochromatic
#555212 #87821C #BAB327 #D8D146 #E3DE79

Accessibility & contrast

On white

2.20
#BAB327 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.57
#BAB327 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB327
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB327#FFFFFF#000000##000000
##BAB3271.002.209.579.57
#FFFFFF2.201.0021.0021.00
#0000009.5721.001.001.00
##0000009.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC00
Deuteranopia (green-blind)
#C6B133
Tritanopia (blue-blind)
#C8A799
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab327;
/* rgb */ color: rgb(186, 179, 39);
/* oklch */ color: oklch(74.9% 0.150 106.5);
Tailwind
colors: {
  custom: {
    50: '#d3c96e',
    500: '#bab327',
    950: '#000000',
  },
}
SCSS
$custom: #bab327;
$custom-light: #d3c96e;
$custom-dark: #000000;
JSON
{
  "hex": "#bab327",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 39
  },
  "hsl": {
    "h": 57.143,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.74944,
    "c": 0.14966,
    "h": 106.5
  },
  "luminance": 0.42826
}

Semantic roles & 50–950 ramp

primary
#BAB327
secondary
#7276CB
accent
#48E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB327

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

Preview Lab → · Contrast checker → · Palette generator →

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