#BAB52D#BAB52D

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

Color values

HEX#BAB52D
RGBrgb(186, 181, 45)
HSLhsl(58, 61%, 45%)
HSVhsv(58, 76%, 73%)
CMYKcmyk(0%, 2.7%, 75.8%, 27.1%)
CIE-LABlab(72.01, -13.47, 64.78)
CIE-LCHlch(72.01, 66.17, 101.74°)
OKLaboklab(75.41% -0.0442 0.1418)
OKLCHoklch(75.41% 0.149 107.3)
XYZxyz(37.2487, 43.6776, 8.9506)
Luminance0.4368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB52D #2D32BA
analogous
#BA6E2D #BAB52D #79BA2D
triadic
#BAB52D #2DBAB5 #B52DBA
tetradic
#BAB52D #2DBA6E #2D32BA #BA2D79
square
#BAB52D #2DBA6E #2D32BA #BA2D79
split-complementary
#BAB52D #2D79BA #6E2DBA
monochromatic
#575515 #898521 #BAB52D #D5D050 #E0DD81

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB52D#FFFFFF#000000##000000
##BAB52D1.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)
#C5AE0B
Deuteranopia (green-blind)
#C7B338
Tritanopia (blue-blind)
#C8A99B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab52d;
/* rgb */ color: rgb(186, 181, 45);
/* oklch */ color: oklch(75.4% 0.148 107.3);
Tailwind
colors: {
  custom: {
    50: '#d3ca71',
    500: '#bab52d',
    950: '#000000',
  },
}
SCSS
$custom: #bab52d;
$custom-light: #d3ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#bab52d",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 45
  },
  "hsl": {
    "h": 57.872,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.75411,
    "c": 0.1485,
    "h": 107.3
  },
  "luminance": 0.43676
}

Semantic roles & 50–950 ramp

primary
#BAB52D
secondary
#797CC9
accent
#49E444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB52D

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

Preview Lab → · Contrast checker → · Palette generator →

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