#BABB2B#BABB2B

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

Color values

HEX#BABB2B
RGBrgb(186, 187, 43)
HSLhsl(60, 63%, 45%)
HSVhsv(60, 77%, 73%)
CMYKcmyk(0.5%, 0%, 77%, 26.7%)
CIE-LABlab(73.65, -16.59, 66.90)
CIE-LCHlch(73.65, 68.93, 103.93°)
OKLaboklab(76.71% -0.053 0.1459)
OKLCHoklch(76.71% 0.155 110)
XYZxyz(38.4575, 46.1553, 9.1681)
Luminance0.4615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABB2B #2C2BBB
analogous
#BB742B #BABB2B #72BB2B
triadic
#BABB2B #2BBABB #BB2BBA
tetradic
#BABB2B #2BBB74 #2C2BBB #BB2B72
square
#BABB2B #2BBB74 #2C2BBB #BB2B72
split-complementary
#BABB2B #2B72BB #742BBB
monochromatic
#575714 #898920 #BABB2B #D5D64D #E1E27F

Accessibility & contrast

On white

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

On black

10.23
#BABB2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABB2B
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABB2B#FFFFFF#000000##000000
##BABB2B1.002.0510.2310.23
#FFFFFF2.051.0021.0021.00
#00000010.2321.001.001.00
##00000010.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB300
Deuteranopia (green-blind)
#CCB738
Tritanopia (blue-blind)
#C7AFA0
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #babb2b;
/* rgb */ color: rgb(186, 187, 43);
/* oklch */ color: oklch(76.7% 0.155 110.0);
Tailwind
colors: {
  custom: {
    50: '#d3cf71',
    500: '#babb2b',
    950: '#000000',
  },
}
SCSS
$custom: #babb2b;
$custom-light: #d3cf71;
$custom-dark: #000000;
JSON
{
  "hex": "#babb2b",
  "rgb": {
    "r": 186,
    "g": 187,
    "b": 43
  },
  "hsl": {
    "h": 60.417,
    "s": 62.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.76713,
    "c": 0.15527,
    "h": 110
  },
  "luminance": 0.46154
}

Semantic roles & 50–950 ramp

primary
#BABB2B
secondary
#7878CA
accent
#42E643
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BABB2B

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

Preview Lab → · Contrast checker → · Palette generator →

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