#BABC27#BABC27

#BABC27 is a light, vivid yellow. Relative luminance 0.466; OKLCH L 76.9% C 0.158 H 110.4°. Best body text is #000000 at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#BABC27
RGBrgb(186, 188, 39)
HSLhsl(61, 66%, 45%)
HSVhsv(61, 79%, 74%)
CMYKcmyk(1.1%, 0%, 79.3%, 26.3%)
CIE-LABlab(73.90, -17.24, 68.30)
CIE-LCHlch(73.90, 70.44, 104.17°)
OKLaboklab(76.91% -0.0552 0.1482)
OKLCHoklch(76.91% 0.158 110.4)
XYZxyz(38.6006, 46.5532, 8.8714)
Luminance0.4655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABC27 #2927BC
analogous
#BC7327 #BABC27 #70BC27
triadic
#BABC27 #27BABC #BC27BA
tetradic
#BABC27 #27BC73 #2927BC #BC2770
square
#BABC27 #27BC73 #2927BC #BC2770
split-complementary
#BABC27 #2770BC #7327BC
monochromatic
#565712 #88891C #BABC27 #D7D947 #E2E37A

Accessibility & contrast

On white

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

On black

10.31
#BABC27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABC27
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABC27#FFFFFF#000000##000000
##BABC271.002.0410.3110.31
#FFFFFF2.041.0021.0021.00
#00000010.3121.001.001.00
##00000010.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #babc27;
/* rgb */ color: rgb(186, 188, 39);
/* oklch */ color: oklch(76.9% 0.158 110.4);
Tailwind
colors: {
  custom: {
    50: '#d3cf6f',
    500: '#babc27',
    950: '#000000',
  },
}
SCSS
$custom: #babc27;
$custom-light: #d3cf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#babc27",
  "rgb": {
    "r": 186,
    "g": 188,
    "b": 39
  },
  "hsl": {
    "h": 60.805,
    "s": 65.639,
    "l": 44.51
  },
  "oklch": {
    "l": 0.76912,
    "c": 0.15813,
    "h": 110.4
  },
  "luminance": 0.46552
}

Semantic roles & 50–950 ramp

primary
#BABC27
secondary
#7573CB
accent
#3FE941
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BABC27

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

Preview Lab → · Contrast checker → · Palette generator →

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