#BAB52F#BAB52F

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

Color values

HEX#BAB52F
RGBrgb(186, 181, 47)
HSLhsl(58, 60%, 46%)
HSVhsv(58, 75%, 73%)
CMYKcmyk(0%, 2.7%, 74.7%, 27.1%)
CIE-LABlab(72.02, -13.38, 64.13)
CIE-LCHlch(72.02, 65.52, 101.79°)
OKLaboklab(75.42% -0.0437 0.1408)
OKLCHoklch(75.42% 0.147 107.3)
XYZxyz(37.2882, 43.6934, 9.1583)
Luminance0.4369 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB52F #2F34BA
analogous
#BA6F2F #BAB52F #79BA2F
triadic
#BAB52F #2FBAB5 #B52FBA
tetradic
#BAB52F #2FBA6F #2F34BA #BA2F79
square
#BAB52F #2FBA6F #2F34BA #BA2F79
split-complementary
#BAB52F #2F79BA #6F2FBA
monochromatic
#585616 #898523 #BAB52F #D3CF53 #E0DC84

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB52F#FFFFFF#000000##000000
##BAB52F1.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)
#C5AE11
Deuteranopia (green-blind)
#C7B339
Tritanopia (blue-blind)
#C8A99C
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab52f;
/* rgb */ color: rgb(186, 181, 47);
/* oklch */ color: oklch(75.4% 0.147 107.3);
Tailwind
colors: {
  custom: {
    50: '#d2ca72',
    500: '#bab52f',
    950: '#000000',
  },
}
SCSS
$custom: #bab52f;
$custom-light: #d2ca72;
$custom-dark: #000000;
JSON
{
  "hex": "#bab52f",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 47
  },
  "hsl": {
    "h": 57.842,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75423,
    "c": 0.14741,
    "h": 107.3
  },
  "luminance": 0.43692
}

Semantic roles & 50–950 ramp

primary
#BAB52F
secondary
#7C7FC9
accent
#4BE345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB52F

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

Preview Lab → · Contrast checker → · Palette generator →

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