#BABA31#BABA31

#BABA31 is a light, vivid yellow. Relative luminance 0.458; OKLCH L 76.5% C 0.151 H 109.5°. Best body text is #000000 at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#BABA31
RGBrgb(186, 186, 49)
HSLhsl(60, 58%, 46%)
HSVhsv(60, 74%, 73%)
CMYKcmyk(0%, 0%, 73.7%, 27.1%)
CIE-LABlab(73.40, -15.84, 64.76)
CIE-LCHlch(73.40, 66.66, 103.74°)
OKLaboklab(76.53% -0.0504 0.1425)
OKLCHoklch(76.53% 0.151 109.5)
XYZxyz(38.3644, 45.7798, 9.7206)
Luminance0.4578 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABA31 #3131BA
analogous
#BA7531 #BABA31 #75BA31
triadic
#BABA31 #31BABA #BA31BA
tetradic
#BABA31 #31BA75 #3131BA #BA3175
square
#BABA31 #31BA75 #3131BA #BA3175
split-complementary
#BABA31 #3175BA #7531BA
monochromatic
#595917 #8A8A24 #BABA31 #D2D256 #DFDF86

Accessibility & contrast

On white

2.07
#BABA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.16
#BABA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABA31
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABA31#FFFFFF#000000##000000
##BABA311.002.0710.1610.16
#FFFFFF2.071.0021.0021.00
#00000010.1621.001.001.00
##00000010.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B214
Deuteranopia (green-blind)
#CBB63C
Tritanopia (blue-blind)
#C7AEA0
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #baba31;
/* rgb */ color: rgb(186, 186, 49);
/* oklch */ color: oklch(76.5% 0.151 109.5);
Tailwind
colors: {
  custom: {
    50: '#d2ce74',
    500: '#baba31',
    950: '#000000',
  },
}
SCSS
$custom: #baba31;
$custom-light: #d2ce74;
$custom-dark: #000000;
JSON
{
  "hex": "#baba31",
  "rgb": {
    "r": 186,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 60,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.76528,
    "c": 0.15111,
    "h": 109.5
  },
  "luminance": 0.45779
}

Semantic roles & 50–950 ramp

primary
#BABA31
secondary
#7E7EC9
accent
#46E246
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BABA31

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

Preview Lab → · Contrast checker → · Palette generator →

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