#BAB72F#BAB72F

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

Color values

HEX#BAB72F
RGBrgb(186, 183, 47)
HSLhsl(59, 60%, 46%)
HSVhsv(59, 75%, 73%)
CMYKcmyk(0%, 1.6%, 74.7%, 27.1%)
CIE-LABlab(72.57, -14.40, 64.64)
CIE-LCHlch(72.57, 66.23, 102.56°)
OKLaboklab(75.86% -0.0466 0.1419)
OKLCHoklch(75.86% 0.149 108.2)
XYZxyz(37.6977, 44.5126, 9.2948)
Luminance0.4451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB72F #2F32BA
analogous
#BA712F #BAB72F #77BA2F
triadic
#BAB72F #2FBAB7 #B72FBA
tetradic
#BAB72F #2FBA71 #2F32BA #BA2F77
square
#BAB72F #2FBA71 #2F32BA #BA2F77
split-complementary
#BAB72F #2F77BA #712FBA
monochromatic
#585716 #898723 #BAB72F #D3D153 #E0DE84

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB72F#FFFFFF#000000##000000
##BAB72F1.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)
#C6AF10
Deuteranopia (green-blind)
#C9B43A
Tritanopia (blue-blind)
#C8AB9D
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #bab72f;
/* rgb */ color: rgb(186, 183, 47);
/* oklch */ color: oklch(75.9% 0.149 108.2);
Tailwind
colors: {
  custom: {
    50: '#d2cc72',
    500: '#bab72f',
    950: '#000000',
  },
}
SCSS
$custom: #bab72f;
$custom-light: #d2cc72;
$custom-dark: #000000;
JSON
{
  "hex": "#bab72f",
  "rgb": {
    "r": 186,
    "g": 183,
    "b": 47
  },
  "hsl": {
    "h": 58.705,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75859,
    "c": 0.14931,
    "h": 108.2
  },
  "luminance": 0.44511
}

Semantic roles & 50–950 ramp

primary
#BAB72F
secondary
#7C7DC9
accent
#48E345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB72F

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

Preview Lab → · Contrast checker → · Palette generator →

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