#BABB22#BABB22

#BABB22 is a light, vivid yellow. Relative luminance 0.461; OKLCH L 76.7% C 0.159 H 110.0°. Best body text is #000000 at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#BABB22
RGBrgb(186, 187, 34)
HSLhsl(60, 69%, 43%)
HSVhsv(60, 82%, 73%)
CMYKcmyk(0.5%, 0%, 81.8%, 26.7%)
CIE-LABlab(73.61, -16.90, 69.38)
CIE-LCHlch(73.61, 71.41, 103.69°)
OKLaboklab(76.67% -0.0546 0.1496)
OKLCHoklch(76.67% 0.159 110)
XYZxyz(38.3102, 46.0964, 8.3925)
Luminance0.4610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABB22 #2322BB
analogous
#BB6F22 #BABB22 #6DBB22
triadic
#BABB22 #22BABB #BB22BA
tetradic
#BABB22 #22BB6F #2322BB #BB226D
square
#BABB22 #22BB6F #2322BB #BB226D
split-complementary
#BABB22 #226DBB #6F22BB
monochromatic
#53530F #868719 #BABB22 #DBDC3E #E5E572

Accessibility & contrast

On white

2.05
#BABB22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.22
#BABB22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABB22
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABB22#FFFFFF#000000##000000
##BABB221.002.0510.2210.22
#FFFFFF2.051.0021.0021.00
#00000010.2221.001.001.00
##00000010.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB300
Deuteranopia (green-blind)
#CCB731
Tritanopia (blue-blind)
#C8AFA0
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #babb22;
/* rgb */ color: rgb(186, 187, 34);
/* oklch */ color: oklch(76.7% 0.159 110.0);
Tailwind
colors: {
  custom: {
    50: '#d3cf6d',
    500: '#babb22',
    950: '#000000',
  },
}
SCSS
$custom: #babb22;
$custom-light: #d3cf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#babb22",
  "rgb": {
    "r": 186,
    "g": 187,
    "b": 34
  },
  "hsl": {
    "h": 60.392,
    "s": 69.231,
    "l": 43.333
  },
  "oklch": {
    "l": 0.7667,
    "c": 0.15928,
    "h": 110
  },
  "luminance": 0.46095
}

Semantic roles & 50–950 ramp

primary
#BABB22
secondary
#6D6DCC
accent
#3CEC3D
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BABB22

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

Preview Lab → · Contrast checker → · Palette generator →

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