#BAB92B#BAB92B

#BAB92B is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.3% C 0.153 H 109.1°. Best body text is #000000 at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#BAB92B
RGBrgb(186, 185, 43)
HSLhsl(60, 62%, 45%)
HSVhsv(60, 77%, 73%)
CMYKcmyk(0%, 0.5%, 76.9%, 27.1%)
CIE-LABlab(73.10, -15.58, 66.41)
CIE-LCHlch(73.10, 68.21, 103.20°)
OKLaboklab(76.27% -0.0502 0.1449)
OKLCHoklch(76.27% 0.153 109.1)
XYZxyz(38.0362, 45.3126, 9.0276)
Luminance0.4531 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB92B #2B2CBA
analogous
#BA712B #BAB92B #74BA2B
triadic
#BAB92B #2BBAB9 #B92BBA
tetradic
#BAB92B #2BBA71 #2B2CBA #BA2B74
square
#BAB92B #2BBA71 #2B2CBA #BA2B74
split-complementary
#BAB92B #2B74BA #712BBA
monochromatic
#575614 #888820 #BAB92B #D6D54C #E1E17E

Accessibility & contrast

On white

2.09
#BAB92B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.06
#BAB92B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB92B
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB92B#FFFFFF#000000##000000
##BAB92B1.002.0910.0610.06
#FFFFFF2.091.0021.0021.00
#00000010.0621.001.001.00
##00000010.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B101
Deuteranopia (green-blind)
#CAB637
Tritanopia (blue-blind)
#C8AD9F
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab92b;
/* rgb */ color: rgb(186, 185, 43);
/* oklch */ color: oklch(76.3% 0.153 109.1);
Tailwind
colors: {
  custom: {
    50: '#d3cd71',
    500: '#bab92b',
    950: '#000000',
  },
}
SCSS
$custom: #bab92b;
$custom-light: #d3cd71;
$custom-dark: #000000;
JSON
{
  "hex": "#bab92b",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 43
  },
  "hsl": {
    "h": 59.58,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.76274,
    "c": 0.15333,
    "h": 109.1
  },
  "luminance": 0.45311
}

Semantic roles & 50–950 ramp

primary
#BAB92B
secondary
#7778CA
accent
#43E642
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB92B

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

Preview Lab → · Contrast checker → · Palette generator →

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