#BAB72D#BAB72D

#BAB72D is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.8% C 0.150 H 108.2°. Best body text is #000000 at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#BAB72D
RGBrgb(186, 183, 45)
HSLhsl(59, 61%, 45%)
HSVhsv(59, 76%, 73%)
CMYKcmyk(0%, 1.6%, 75.8%, 27.1%)
CIE-LABlab(72.56, -14.49, 65.29)
CIE-LCHlch(72.56, 66.87, 102.51°)
OKLaboklab(75.85% -0.047 0.1429)
OKLCHoklch(75.85% 0.15 108.2)
XYZxyz(37.6583, 44.4968, 9.0872)
Luminance0.4450 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB72D #2D30BA
analogous
#BA702D #BAB72D #77BA2D
triadic
#BAB72D #2DBAB7 #B72DBA
tetradic
#BAB72D #2DBA70 #2D30BA #BA2D77
square
#BAB72D #2DBA70 #2D30BA #BA2D77
split-complementary
#BAB72D #2D77BA #702DBA
monochromatic
#575615 #898721 #BAB72D #D5D250 #E0DE81

Accessibility & contrast

On white

2.12
#BAB72D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.90
#BAB72D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB72D
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB72D#FFFFFF#000000##000000
##BAB72D1.002.129.909.90
#FFFFFF2.121.0021.0021.00
#0000009.9021.001.001.00
##0000009.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF0A
Deuteranopia (green-blind)
#C9B438
Tritanopia (blue-blind)
#C8AB9D
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #bab72d;
/* rgb */ color: rgb(186, 183, 45);
/* oklch */ color: oklch(75.8% 0.150 108.2);
Tailwind
colors: {
  custom: {
    50: '#d3cc71',
    500: '#bab72d',
    950: '#000000',
  },
}
SCSS
$custom: #bab72d;
$custom-light: #d3cc71;
$custom-dark: #000000;
JSON
{
  "hex": "#bab72d",
  "rgb": {
    "r": 186,
    "g": 183,
    "b": 45
  },
  "hsl": {
    "h": 58.723,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.75848,
    "c": 0.15039,
    "h": 108.2
  },
  "luminance": 0.44496
}

Semantic roles & 50–950 ramp

primary
#BAB72D
secondary
#797BC9
accent
#47E444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB72D

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

Preview Lab → · Contrast checker → · Palette generator →

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