#BABB31#BABB31

#BABB31 is a light, vivid yellow. Relative luminance 0.462; OKLCH L 76.7% C 0.152 H 109.9°. Best body text is #000000 at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#BABB31
RGBrgb(186, 187, 49)
HSLhsl(60, 58%, 46%)
HSVhsv(60, 74%, 73%)
CMYKcmyk(0.5%, 0%, 73.8%, 26.7%)
CIE-LABlab(73.68, -16.34, 65.01)
CIE-LCHlch(73.68, 67.04, 104.11°)
OKLaboklab(76.75% -0.0518 0.143)
OKLCHoklch(76.75% 0.152 109.9)
XYZxyz(38.5758, 46.2026, 9.7911)
Luminance0.4620 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABB31 #3231BB
analogous
#BB7731 #BABB31 #75BB31
triadic
#BABB31 #31BABB #BB31BA
tetradic
#BABB31 #31BB77 #3231BB #BB3175
square
#BABB31 #31BB77 #3231BB #BB3175
split-complementary
#BABB31 #3175BB #7731BB
monochromatic
#5A5A18 #8A8B24 #BABB31 #D2D356 #DFE087

Accessibility & contrast

On white

2.05
#BABB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.24
#BABB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABB31
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABB31#FFFFFF#000000##000000
##BABB311.002.0510.2410.24
#FFFFFF2.051.0021.0021.00
#00000010.2421.001.001.00
##00000010.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB313
Deuteranopia (green-blind)
#CCB73C
Tritanopia (blue-blind)
#C7AFA1
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #babb31;
/* rgb */ color: rgb(186, 187, 49);
/* oklch */ color: oklch(76.7% 0.152 109.9);
Tailwind
colors: {
  custom: {
    50: '#d2cf74',
    500: '#babb31',
    950: '#000000',
  },
}
SCSS
$custom: #babb31;
$custom-light: #d2cf74;
$custom-dark: #000000;
JSON
{
  "hex": "#babb31",
  "rgb": {
    "r": 186,
    "g": 187,
    "b": 49
  },
  "hsl": {
    "h": 60.435,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.76747,
    "c": 0.15211,
    "h": 109.9
  },
  "luminance": 0.46202
}

Semantic roles & 50–950 ramp

primary
#BABB31
secondary
#7F7FC9
accent
#46E247
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BABB31

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

Preview Lab → · Contrast checker → · Palette generator →

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