#BABB40#BABB40

#BABB40 is a light, vivid yellow. Relative luminance 0.464; OKLCH L 76.9% C 0.142 H 109.8°. Best body text is #000000 at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#BABB40
RGBrgb(186, 187, 64)
HSLhsl(60, 49%, 49%)
HSVhsv(60, 66%, 73%)
CMYKcmyk(0.5%, 0%, 65.8%, 26.7%)
CIE-LABlab(73.77, -15.58, 59.58)
CIE-LCHlch(73.77, 61.58, 104.65°)
OKLaboklab(76.85% -0.0482 0.1341)
OKLCHoklch(76.85% 0.143 109.8)
XYZxyz(38.9467, 46.3510, 11.7445)
Luminance0.4635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABB40 #4140BB
analogous
#BB7F40 #BABB40 #7DBB40
triadic
#BABB40 #40BABB #BB40BA
tetradic
#BABB40 #40BB7F #4140BB #BB407D
square
#BABB40 #40BB7F #4140BB #BB407D
split-complementary
#BABB40 #407DBB #7F40BB
monochromatic
#5F6021 #8D8D30 #BABB40 #CCCD6C #DCDC99

Accessibility & contrast

On white

2.04
#BABB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.27
#BABB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABB40
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABB40#FFFFFF#000000##000000
##BABB401.002.0410.2710.27
#FFFFFF2.041.0021.0021.00
#00000010.2721.001.001.00
##00000010.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B32F
Deuteranopia (green-blind)
#CBB748
Tritanopia (blue-blind)
#C7B0A2
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #babb40;
/* rgb */ color: rgb(186, 187, 64);
/* oklch */ color: oklch(76.9% 0.142 109.8);
Tailwind
colors: {
  custom: {
    50: '#d2cf7b',
    500: '#babb40',
    950: '#000000',
  },
}
SCSS
$custom: #babb40;
$custom-light: #d2cf7b;
$custom-dark: #000000;
JSON
{
  "hex": "#babb40",
  "rgb": {
    "r": 186,
    "g": 187,
    "b": 64
  },
  "hsl": {
    "h": 60.488,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.76854,
    "c": 0.1425,
    "h": 109.8
  },
  "luminance": 0.4635
}

Semantic roles & 50–950 ramp

primary
#BABB40
secondary
#8F8FC8
accent
#4FD950
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BABB40

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

Preview Lab → · Contrast checker → · Palette generator →

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