#BABA40#BABA40

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

Color values

HEX#BABA40
RGBrgb(186, 186, 64)
HSLhsl(60, 49%, 49%)
HSVhsv(60, 66%, 73%)
CMYKcmyk(0%, 0%, 65.6%, 27.1%)
CIE-LABlab(73.50, -15.07, 59.30)
CIE-LCHlch(73.50, 61.18, 104.26°)
OKLaboklab(76.63% -0.0468 0.1335)
OKLCHoklch(76.63% 0.141 109.3)
XYZxyz(38.7353, 45.9282, 11.6741)
Luminance0.4593 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABA40 #4040BA
analogous
#BA7D40 #BABA40 #7DBA40
triadic
#BABA40 #40BABA #BA40BA
tetradic
#BABA40 #40BA7D #4040BA #BA407D
square
#BABA40 #40BA7D #4040BA #BA407D
split-complementary
#BABA40 #407DBA #7D40BA
monochromatic
#5F5F21 #8C8C30 #BABA40 #CCCC6B #DCDC99

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BABA40#FFFFFF#000000##000000
##BABA401.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)
#C9B22F
Deuteranopia (green-blind)
#CAB648
Tritanopia (blue-blind)
#C7AFA1
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #baba40;
/* rgb */ color: rgb(186, 186, 64);
/* oklch */ color: oklch(76.6% 0.141 109.3);
Tailwind
colors: {
  custom: {
    50: '#d2ce7b',
    500: '#baba40',
    950: '#000000',
  },
}
SCSS
$custom: #baba40;
$custom-light: #d2ce7b;
$custom-dark: #000000;
JSON
{
  "hex": "#baba40",
  "rgb": {
    "r": 186,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.76635,
    "c": 0.14147,
    "h": 109.3
  },
  "luminance": 0.45927
}

Semantic roles & 50–950 ramp

primary
#BABA40
secondary
#8E8EC8
accent
#4FD84F
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BABA40

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

Preview Lab → · Contrast checker → · Palette generator →

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