#BAB13D#BAB13D

#BAB13D is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.7% C 0.135 H 104.9°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#BAB13D
RGBrgb(186, 177, 61)
HSLhsl(56, 51%, 48%)
HSVhsv(56, 67%, 73%)
CMYKcmyk(0%, 4.8%, 67.2%, 27.1%)
CIE-LABlab(71.02, -10.63, 57.97)
CIE-LCHlch(71.02, 58.93, 100.39°)
OKLaboklab(74.66% -0.0346 0.1302)
OKLCHoklch(74.66% 0.135 104.9)
XYZxyz(36.8156, 42.2217, 10.6243)
Luminance0.4222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB13D #3D46BA
analogous
#BA723D #BAB13D #84BA3D
triadic
#BAB13D #3DBAB1 #B13DBA
tetradic
#BAB13D #3DBA72 #3D46BA #BA3D84
square
#BAB13D #3DBA72 #3D46BA #BA3D84
split-complementary
#BAB13D #3D84BA #723DBA
monochromatic
#5E591F #8C852E #BAB13D #CDC667 #DCD795

Accessibility & contrast

On white

2.22
#BAB13D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.44
#BAB13D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB13D
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB13D#FFFFFF#000000##000000
##BAB13D1.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB2D
Deuteranopia (green-blind)
#C3B044
Tritanopia (blue-blind)
#C8A599
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab13d;
/* rgb */ color: rgb(186, 177, 61);
/* oklch */ color: oklch(74.7% 0.135 104.9);
Tailwind
colors: {
  custom: {
    50: '#d2c879',
    500: '#bab13d',
    950: '#000000',
  },
}
SCSS
$custom: #bab13d;
$custom-light: #d2c879;
$custom-dark: #000000;
JSON
{
  "hex": "#bab13d",
  "rgb": {
    "r": 186,
    "g": 177,
    "b": 61
  },
  "hsl": {
    "h": 55.68,
    "s": 50.607,
    "l": 48.431
  },
  "oklch": {
    "l": 0.74655,
    "c": 0.13473,
    "h": 104.9
  },
  "luminance": 0.4222
}

Semantic roles & 50–950 ramp

primary
#BAB13D
secondary
#8B8FC8
accent
#58DA4E
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B

Preview Lab

Preview with #BAB13D

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

Preview Lab → · Contrast checker → · Palette generator →

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