#BAB03B#BAB03B

#BAB03B is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.4% C 0.135 H 104.4°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#BAB03B
RGBrgb(186, 176, 59)
HSLhsl(55, 52%, 48%)
HSVhsv(55, 68%, 73%)
CMYKcmyk(0%, 5.4%, 68.3%, 27.1%)
CIE-LABlab(70.74, -10.22, 58.48)
CIE-LCHlch(70.74, 59.36, 99.91°)
OKLaboklab(74.42% -0.0336 0.131)
OKLCHoklch(74.42% 0.135 104.4)
XYZxyz(36.5659, 41.8069, 10.2803)
Luminance0.4181 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB03B #3B45BA
analogous
#BA713B #BAB03B #84BA3B
triadic
#BAB03B #3BBAB0 #B03BBA
tetradic
#BAB03B #3BBA71 #3B45BA #BA3B84
square
#BAB03B #3BBA71 #3B45BA #BA3B84
split-complementary
#BAB03B #3B84BA #713BBA
monochromatic
#5D581E #8C842C #BAB03B #CEC664 #DDD793

Accessibility & contrast

On white

2.24
#BAB03B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.36
#BAB03B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB03B
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB03B#FFFFFF#000000##000000
##BAB03B1.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA2A
Deuteranopia (green-blind)
#C3B042
Tritanopia (blue-blind)
#C8A498
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #bab03b;
/* rgb */ color: rgb(186, 176, 59);
/* oklch */ color: oklch(74.4% 0.135 104.4);
Tailwind
colors: {
  custom: {
    50: '#d2c778',
    500: '#bab03b',
    950: '#000000',
  },
}
SCSS
$custom: #bab03b;
$custom-light: #d2c778;
$custom-dark: #000000;
JSON
{
  "hex": "#bab03b",
  "rgb": {
    "r": 186,
    "g": 176,
    "b": 59
  },
  "hsl": {
    "h": 55.276,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.74423,
    "c": 0.1352,
    "h": 104.4
  },
  "luminance": 0.41806
}

Semantic roles & 50–950 ramp

primary
#BAB03B
secondary
#898EC8
accent
#58DB4D
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB03B

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

Preview Lab → · Contrast checker → · Palette generator →

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