#BABA28#BABA28

#BABA28 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#BABA28
RGBrgb(186, 186, 40)
HSLhsl(60, 65%, 44%)
HSVhsv(60, 78%, 73%)
CMYKcmyk(0%, 0%, 78.5%, 27.1%)
CIE-LABlab(73.36, -16.20, 67.53)
CIE-LCHlch(73.36, 69.45, 103.49°)
OKLaboklab(76.48% -0.0522 0.1467)
OKLCHoklch(76.48% 0.156 109.6)
XYZxyz(38.1931, 45.7113, 8.8184)
Luminance0.4571 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABA28 #2828BA
analogous
#BA7128 #BABA28 #71BA28
triadic
#BABA28 #28BABA #BA28BA
tetradic
#BABA28 #28BA71 #2828BA #BA2871
square
#BABA28 #28BA71 #2828BA #BA2871
split-complementary
#BABA28 #2871BA #7128BA
monochromatic
#555512 #88881D #BABA28 #D8D848 #E2E27A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BABA28#FFFFFF#000000##000000
##BABA281.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)
#C9B200
Deuteranopia (green-blind)
#CBB635
Tritanopia (blue-blind)
#C8AE9F
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #baba28;
/* rgb */ color: rgb(186, 186, 40);
/* oklch */ color: oklch(76.5% 0.156 109.6);
Tailwind
colors: {
  custom: {
    50: '#d3ce6f',
    500: '#baba28',
    950: '#000000',
  },
}
SCSS
$custom: #baba28;
$custom-light: #d3ce6f;
$custom-dark: #000000;
JSON
{
  "hex": "#baba28",
  "rgb": {
    "r": 186,
    "g": 186,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.76478,
    "c": 0.15574,
    "h": 109.6
  },
  "luminance": 0.4571
}

Semantic roles & 50–950 ramp

primary
#BABA28
secondary
#7373CA
accent
#40E840
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BABA28

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

Preview Lab → · Contrast checker → · Palette generator →

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