#BABD28#BABD28

#BABD28 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#BABD28
RGBrgb(186, 189, 40)
HSLhsl(61, 65%, 45%)
HSVhsv(61, 79%, 74%)
CMYKcmyk(1.6%, 0%, 78.8%, 25.9%)
CIE-LABlab(74.18, -17.71, 68.27)
CIE-LCHlch(74.18, 70.52, 104.54°)
OKLaboklab(77.14% -0.0564 0.1483)
OKLCHoklch(77.14% 0.159 110.8)
XYZxyz(38.8317, 46.9886, 9.0312)
Luminance0.4699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABD28 #2B28BD
analogous
#BD7528 #BABD28 #70BD28
triadic
#BABD28 #28BABD #BD28BA
tetradic
#BABD28 #28BD75 #2B28BD #BD2870
square
#BABD28 #28BD75 #2B28BD #BD2870
split-complementary
#BABD28 #2870BD #7528BD
monochromatic
#575813 #888A1D #BABD28 #D6D94A #E1E37C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BABD28#FFFFFF#000000##000000
##BABD281.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)
#CDB836
Tritanopia (blue-blind)
#C7B1A2
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #babd28;
/* rgb */ color: rgb(186, 189, 40);
/* oklch */ color: oklch(77.1% 0.159 110.8);
Tailwind
colors: {
  custom: {
    50: '#d3d070',
    500: '#babd28',
    950: '#000000',
  },
}
SCSS
$custom: #babd28;
$custom-light: #d3d070;
$custom-dark: #000000;
JSON
{
  "hex": "#babd28",
  "rgb": {
    "r": 186,
    "g": 189,
    "b": 40
  },
  "hsl": {
    "h": 61.208,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.77137,
    "c": 0.15866,
    "h": 110.8
  },
  "luminance": 0.46987
}

Semantic roles & 50–950 ramp

primary
#BABD28
secondary
#7775CB
accent
#40E843
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BABD28

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

Preview Lab → · Contrast checker → · Palette generator →

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