#BABC31#BABC31

#BABC31 is a light, vivid yellow. Relative luminance 0.466; OKLCH L 77.0% C 0.153 H 110.4°. Best body text is #000000 at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#BABC31
RGBrgb(186, 188, 49)
HSLhsl(61, 59%, 46%)
HSVhsv(61, 74%, 74%)
CMYKcmyk(1.1%, 0%, 73.9%, 26.3%)
CIE-LABlab(73.95, -16.85, 65.27)
CIE-LCHlch(73.95, 67.41, 104.47°)
OKLaboklab(76.97% -0.0532 0.1435)
OKLCHoklch(76.97% 0.153 110.4)
XYZxyz(38.7887, 46.6284, 9.8621)
Luminance0.4663 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABC31 #3331BC
analogous
#BC7931 #BABC31 #75BC31
triadic
#BABC31 #31BABC #BC31BA
tetradic
#BABC31 #31BC79 #3331BC #BC3175
square
#BABC31 #31BC79 #3331BC #BC3175
split-complementary
#BABC31 #3175BC #7931BC
monochromatic
#5A5B18 #8A8B24 #BABC31 #D1D357 #DFE088

Accessibility & contrast

On white

2.03
#BABC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.33
#BABC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABC31
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABC31#FFFFFF#000000##000000
##BABC311.002.0310.3310.33
#FFFFFF2.031.0021.0021.00
#00000010.3321.001.001.00
##00000010.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB412
Deuteranopia (green-blind)
#CCB83C
Tritanopia (blue-blind)
#C7B0A2
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #babc31;
/* rgb */ color: rgb(186, 188, 49);
/* oklch */ color: oklch(77.0% 0.153 110.4);
Tailwind
colors: {
  custom: {
    50: '#d2cf74',
    500: '#babc31',
    950: '#000000',
  },
}
SCSS
$custom: #babc31;
$custom-light: #d2cf74;
$custom-dark: #000000;
JSON
{
  "hex": "#babc31",
  "rgb": {
    "r": 186,
    "g": 188,
    "b": 49
  },
  "hsl": {
    "h": 60.863,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.76966,
    "c": 0.1531,
    "h": 110.4
  },
  "luminance": 0.46627
}

Semantic roles & 50–950 ramp

primary
#BABC31
secondary
#807FCA
accent
#46E248
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BABC31

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

Preview Lab → · Contrast checker → · Palette generator →

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