#BAB922#BAB922

#BAB922 is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.2% C 0.157 H 109.2°. Best body text is #000000 at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#BAB922
RGBrgb(186, 185, 34)
HSLhsl(60, 69%, 43%)
HSVhsv(60, 82%, 73%)
CMYKcmyk(0%, 0.5%, 81.7%, 27.1%)
CIE-LABlab(73.06, -15.89, 68.91)
CIE-LCHlch(73.06, 70.72, 102.98°)
OKLaboklab(76.23% -0.0518 0.1486)
OKLCHoklch(76.23% 0.157 109.2)
XYZxyz(37.8889, 45.2537, 8.2521)
Luminance0.4525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB922 #2223BA
analogous
#BA6D22 #BAB922 #6FBA22
triadic
#BAB922 #22BAB9 #B922BA
tetradic
#BAB922 #22BA6D #2223BA #BA226F
square
#BAB922 #22BA6D #2223BA #BA226F
split-complementary
#BAB922 #226FBA #6D22BA
monochromatic
#53520F #868619 #BAB922 #DCDB3E #E5E471

Accessibility & contrast

On white

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

On black

10.05
#BAB922 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB922
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB922#FFFFFF#000000##000000
##BAB9221.002.0910.0510.05
#FFFFFF2.091.0021.0021.00
#00000010.0521.001.001.00
##00000010.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#CBB531
Tritanopia (blue-blind)
#C8AD9E
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab922;
/* rgb */ color: rgb(186, 185, 34);
/* oklch */ color: oklch(76.2% 0.157 109.2);
Tailwind
colors: {
  custom: {
    50: '#d3cd6d',
    500: '#bab922',
    950: '#000000',
  },
}
SCSS
$custom: #bab922;
$custom-light: #d3cd6d;
$custom-dark: #000000;
JSON
{
  "hex": "#bab922",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 34
  },
  "hsl": {
    "h": 59.605,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.76231,
    "c": 0.15738,
    "h": 109.2
  },
  "luminance": 0.45253
}

Semantic roles & 50–950 ramp

primary
#BAB922
secondary
#6C6DCC
accent
#3DEC3C
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB922

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

Preview Lab → · Contrast checker → · Palette generator →

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