#BABB2A#BABB2A

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

Color values

HEX#BABB2A
RGBrgb(186, 187, 42)
HSLhsl(60, 63%, 45%)
HSVhsv(60, 78%, 73%)
CMYKcmyk(0.5%, 0%, 77.5%, 26.7%)
CIE-LABlab(73.64, -16.63, 67.20)
CIE-LCHlch(73.64, 69.23, 103.90°)
OKLaboklab(76.71% -0.0532 0.1464)
OKLCHoklch(76.71% 0.156 110)
XYZxyz(38.4394, 46.1481, 9.0727)
Luminance0.4615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABB2A #2B2ABB
analogous
#BB742A #BABB2A #71BB2A
triadic
#BABB2A #2ABABB #BB2ABA
tetradic
#BABB2A #2ABB74 #2B2ABB #BB2A71
square
#BABB2A #2ABB74 #2B2ABB #BB2A71
split-complementary
#BABB2A #2A71BB #742ABB
monochromatic
#575714 #88891F #BABB2A #D6D74C #E1E27D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BABB2A#FFFFFF#000000##000000
##BABB2A1.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)
#CCB737
Tritanopia (blue-blind)
#C7AFA0
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #babb2a;
/* rgb */ color: rgb(186, 187, 42);
/* oklch */ color: oklch(76.7% 0.156 110.0);
Tailwind
colors: {
  custom: {
    50: '#d3cf70',
    500: '#babb2a',
    950: '#000000',
  },
}
SCSS
$custom: #babb2a;
$custom-light: #d3cf70;
$custom-dark: #000000;
JSON
{
  "hex": "#babb2a",
  "rgb": {
    "r": 186,
    "g": 187,
    "b": 42
  },
  "hsl": {
    "h": 60.414,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.76707,
    "c": 0.15576,
    "h": 110
  },
  "luminance": 0.46147
}

Semantic roles & 50–950 ramp

primary
#BABB2A
secondary
#7776CA
accent
#41E643
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BABB2A

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

Preview Lab → · Contrast checker → · Palette generator →

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