#BABD27#BABD27

#BABD27 is a light, vivid yellow. Relative luminance 0.470; OKLCH L 77.1% C 0.159 H 110.8°. Best body text is #000000 at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#BABD27
RGBrgb(186, 189, 39)
HSLhsl(61, 66%, 45%)
HSVhsv(61, 79%, 74%)
CMYKcmyk(1.6%, 0%, 79.4%, 25.9%)
CIE-LABlab(74.18, -17.74, 68.54)
CIE-LCHlch(74.18, 70.80, 104.51°)
OKLaboklab(77.13% -0.0565 0.1487)
OKLCHoklch(77.13% 0.159 110.8)
XYZxyz(38.8149, 46.9819, 8.9428)
Luminance0.4698 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABD27 #2A27BD
analogous
#BD7527 #BABD27 #6FBD27
triadic
#BABD27 #27BABD #BD27BA
tetradic
#BABD27 #27BD75 #2A27BD #BD276F
square
#BABD27 #27BD75 #2A27BD #BD276F
split-complementary
#BABD27 #276FBD #7527BD
monochromatic
#565812 #888A1D #BABD27 #D6D948 #E2E47B

Accessibility & contrast

On white

2.02
#BABD27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.40
#BABD27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABD27
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABD27#FFFFFF#000000##000000
##BABD271.002.0210.4010.40
#FFFFFF2.021.0021.0021.00
#00000010.4021.001.001.00
##00000010.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB400
Deuteranopia (green-blind)
#CDB835
Tritanopia (blue-blind)
#C7B1A2
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #babd27;
/* rgb */ color: rgb(186, 189, 39);
/* oklch */ color: oklch(77.1% 0.159 110.8);
Tailwind
colors: {
  custom: {
    50: '#d3d06f',
    500: '#babd27',
    950: '#000000',
  },
}
SCSS
$custom: #babd27;
$custom-light: #d3d06f;
$custom-dark: #000000;
JSON
{
  "hex": "#babd27",
  "rgb": {
    "r": 186,
    "g": 189,
    "b": 39
  },
  "hsl": {
    "h": 61.2,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.77132,
    "c": 0.15911,
    "h": 110.8
  },
  "luminance": 0.46981
}

Semantic roles & 50–950 ramp

primary
#BABD27
secondary
#7674CC
accent
#3FE942
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BABD27

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

Preview Lab → · Contrast checker → · Palette generator →

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