#BABA22#BABA22

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

Color values

HEX#BABA22
RGBrgb(186, 186, 34)
HSLhsl(60, 69%, 43%)
HSVhsv(60, 82%, 73%)
CMYKcmyk(0%, 0%, 81.7%, 27.1%)
CIE-LABlab(73.33, -16.40, 69.15)
CIE-LCHlch(73.33, 71.06, 103.34°)
OKLaboklab(76.45% -0.0532 0.1491)
OKLCHoklch(76.45% 0.158 109.6)
XYZxyz(38.0988, 45.6736, 8.3220)
Luminance0.4567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABA22 #2222BA
analogous
#BA6E22 #BABA22 #6EBA22
triadic
#BABA22 #22BABA #BA22BA
tetradic
#BABA22 #22BA6E #2222BA #BA226E
square
#BABA22 #22BA6E #2222BA #BA226E
split-complementary
#BABA22 #226EBA #6E22BA
monochromatic
#53530F #868619 #BABA22 #DCDC3E #E5E571

Accessibility & contrast

On white

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

On black

10.13
#BABA22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABA22
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABA22#FFFFFF#000000##000000
##BABA221.002.0710.1310.13
#FFFFFF2.071.0021.0021.00
#00000010.1321.001.001.00
##00000010.1321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #baba22;
/* rgb */ color: rgb(186, 186, 34);
/* oklch */ color: oklch(76.4% 0.158 109.6);
Tailwind
colors: {
  custom: {
    50: '#d3ce6d',
    500: '#baba22',
    950: '#000000',
  },
}
SCSS
$custom: #baba22;
$custom-light: #d3ce6d;
$custom-dark: #000000;
JSON
{
  "hex": "#baba22",
  "rgb": {
    "r": 186,
    "g": 186,
    "b": 34
  },
  "hsl": {
    "h": 60,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.7645,
    "c": 0.15833,
    "h": 109.6
  },
  "luminance": 0.45672
}

Semantic roles & 50–950 ramp

primary
#BABA22
secondary
#6C6CCC
accent
#3CEC3C
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BABA22

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

Preview Lab → · Contrast checker → · Palette generator →

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