#BABF40#BABF40

#BABF40 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 77.7% C 0.147 H 111.5°. Best body text is #000000 at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#BABF40
RGBrgb(186, 191, 64)
HSLhsl(62, 50%, 50%)
HSVhsv(62, 66%, 75%)
CMYKcmyk(2.6%, 0%, 66.5%, 25.1%)
CIE-LABlab(74.87, -17.59, 60.70)
CIE-LCHlch(74.87, 63.20, 106.16°)
OKLaboklab(77.73% -0.0539 0.1365)
OKLCHoklch(77.73% 0.147 111.5)
XYZxyz(39.8071, 48.0718, 12.0313)
Luminance0.4807 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABF40 #4540BF
analogous
#BF8440 #BABF40 #7BBF40
triadic
#BABF40 #40BABF #BF40BA
tetradic
#BABF40 #40BF84 #4540BF #BF407B
square
#BABF40 #40BF84 #4540BF #BF407B
split-complementary
#BABF40 #407BBF #8440BF
monochromatic
#616321 #8D9131 #BABF40 #CBCE6E #DBDE9C

Accessibility & contrast

On white

1.98
#BABF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.61
#BABF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABF40
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABF40#FFFFFF#000000##000000
##BABF401.001.9810.6110.61
#FFFFFF1.981.0021.0021.00
#00000010.6121.001.001.00
##00000010.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB72E
Deuteranopia (green-blind)
#CEBA49
Tritanopia (blue-blind)
#C6B4A5
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #babf40;
/* rgb */ color: rgb(186, 191, 64);
/* oklch */ color: oklch(77.7% 0.147 111.5);
Tailwind
colors: {
  custom: {
    50: '#d2d27c',
    500: '#babf40',
    950: '#000000',
  },
}
SCSS
$custom: #babf40;
$custom-light: #d2d27c;
$custom-dark: #000000;
JSON
{
  "hex": "#babf40",
  "rgb": {
    "r": 186,
    "g": 191,
    "b": 64
  },
  "hsl": {
    "h": 62.362,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.77731,
    "c": 0.14672,
    "h": 111.5
  },
  "luminance": 0.48071
}

Semantic roles & 50–950 ramp

primary
#BABF40
secondary
#9391CA
accent
#4ED954
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #BABF40

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

Preview Lab → · Contrast checker → · Palette generator →

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