#BABA27#BABA27

#BABA27 is a light, vivid yellow. Relative luminance 0.457; OKLCH L 76.5% C 0.156 H 109.6°. Best body text is #000000 at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#BABA27
RGBrgb(186, 186, 39)
HSLhsl(60, 65%, 44%)
HSVhsv(60, 79%, 73%)
CMYKcmyk(0%, 0%, 79%, 27.1%)
CIE-LABlab(73.35, -16.23, 67.82)
CIE-LCHlch(73.35, 69.73, 103.46°)
OKLaboklab(76.47% -0.0524 0.1472)
OKLCHoklch(76.47% 0.156 109.6)
XYZxyz(38.1763, 45.7046, 8.7299)
Luminance0.4570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABA27 #2727BA
analogous
#BA7127 #BABA27 #71BA27
triadic
#BABA27 #27BABA #BA27BA
tetradic
#BABA27 #27BA71 #2727BA #BA2771
square
#BABA27 #27BA71 #2727BA #BA2771
split-complementary
#BABA27 #2771BA #7127BA
monochromatic
#555512 #87871C #BABA27 #D8D846 #E3E379

Accessibility & contrast

On white

2.07
#BABA27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.14
#BABA27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABA27
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABA27#FFFFFF#000000##000000
##BABA271.002.0710.1410.14
#FFFFFF2.071.0021.0021.00
#00000010.1421.001.001.00
##00000010.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB200
Deuteranopia (green-blind)
#CBB634
Tritanopia (blue-blind)
#C8AE9F
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #baba27;
/* rgb */ color: rgb(186, 186, 39);
/* oklch */ color: oklch(76.5% 0.156 109.6);
Tailwind
colors: {
  custom: {
    50: '#d3ce6f',
    500: '#baba27',
    950: '#000000',
  },
}
SCSS
$custom: #baba27;
$custom-light: #d3ce6f;
$custom-dark: #000000;
JSON
{
  "hex": "#baba27",
  "rgb": {
    "r": 186,
    "g": 186,
    "b": 39
  },
  "hsl": {
    "h": 60,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.76473,
    "c": 0.1562,
    "h": 109.6
  },
  "luminance": 0.45703
}

Semantic roles & 50–950 ramp

primary
#BABA27
secondary
#7272CB
accent
#40E840
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BABA27

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

Preview Lab → · Contrast checker → · Palette generator →

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