#BABA42#BABA42

#BABA42 is a light, vivid yellow. Relative luminance 0.460; OKLCH L 76.7% C 0.140 H 109.3°. Best body text is #000000 at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#BABA42
RGBrgb(186, 186, 66)
HSLhsl(60, 48%, 49%)
HSVhsv(60, 65%, 73%)
CMYKcmyk(0%, 0%, 64.5%, 27.1%)
CIE-LABlab(73.51, -14.95, 58.50)
CIE-LCHlch(73.51, 60.38, 104.33°)
OKLaboklab(76.65% -0.0463 0.1321)
OKLCHoklch(76.65% 0.14 109.3)
XYZxyz(38.7932, 45.9514, 11.9792)
Luminance0.4595 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABA42 #4242BA
analogous
#BA7E42 #BABA42 #7EBA42
triadic
#BABA42 #42BABA #BA42BA
tetradic
#BABA42 #42BA7E #4242BA #BA427E
square
#BABA42 #42BA7E #4242BA #BA427E
split-complementary
#BABA42 #427EBA #7E42BA
monochromatic
#606022 #8D8D32 #BABA42 #CBCB6E #DBDB9B

Accessibility & contrast

On white

2.06
#BABA42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.19
#BABA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABA42
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABA42#FFFFFF#000000##000000
##BABA421.002.0610.1910.19
#FFFFFF2.061.0021.0021.00
#00000010.1921.001.001.00
##00000010.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #baba42;
/* rgb */ color: rgb(186, 186, 66);
/* oklch */ color: oklch(76.7% 0.140 109.3);
Tailwind
colors: {
  custom: {
    50: '#d2ce7d',
    500: '#baba42',
    950: '#000000',
  },
}
SCSS
$custom: #baba42;
$custom-light: #d2ce7d;
$custom-dark: #000000;
JSON
{
  "hex": "#baba42",
  "rgb": {
    "r": 186,
    "g": 186,
    "b": 66
  },
  "hsl": {
    "h": 60,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.76652,
    "c": 0.14,
    "h": 109.3
  },
  "luminance": 0.4595
}

Semantic roles & 50–950 ramp

primary
#BABA42
secondary
#9090C8
accent
#51D751
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BABA42

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

Preview Lab → · Contrast checker → · Palette generator →

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