#BAB02D#BAB02D

#BAB02D is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.3% C 0.144 H 104.9°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#BAB02D
RGBrgb(186, 176, 45)
HSLhsl(56, 61%, 45%)
HSVhsv(56, 76%, 73%)
CMYKcmyk(0%, 5.4%, 75.8%, 27.1%)
CIE-LABlab(70.65, -10.89, 63.53)
CIE-LCHlch(70.65, 64.45, 99.73°)
OKLaboklab(74.33% -0.0369 0.1391)
OKLCHoklch(74.33% 0.144 104.9)
XYZxyz(36.2503, 41.6807, 8.6178)
Luminance0.4168 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB02D #2D37BA
analogous
#BA6A2D #BAB02D #7DBA2D
triadic
#BAB02D #2DBAB0 #B02DBA
tetradic
#BAB02D #2DBA6A #2D37BA #BA2D7D
square
#BAB02D #2DBA6A #2D37BA #BA2D7D
split-complementary
#BAB02D #2D7DBA #6A2DBA
monochromatic
#575315 #898121 #BAB02D #D5CB50 #E0DA81

Accessibility & contrast

On white

2.25
#BAB02D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.34
#BAB02D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB02D
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB02D#FFFFFF#000000##000000
##BAB02D1.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA0F
Deuteranopia (green-blind)
#C3AF37
Tritanopia (blue-blind)
#C8A497
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #bab02d;
/* rgb */ color: rgb(186, 176, 45);
/* oklch */ color: oklch(74.3% 0.144 104.9);
Tailwind
colors: {
  custom: {
    50: '#d3c770',
    500: '#bab02d',
    950: '#000000',
  },
}
SCSS
$custom: #bab02d;
$custom-light: #d3c770;
$custom-dark: #000000;
JSON
{
  "hex": "#bab02d",
  "rgb": {
    "r": 186,
    "g": 176,
    "b": 45
  },
  "hsl": {
    "h": 55.745,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74326,
    "c": 0.14392,
    "h": 104.9
  },
  "luminance": 0.41679
}

Semantic roles & 50–950 ramp

primary
#BAB02D
secondary
#797FC9
accent
#4FE444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB02D

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

Preview Lab → · Contrast checker → · Palette generator →

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