#BABA2C#BABA2C

#BABA2C is a light, vivid yellow. Relative luminance 0.457; OKLCH L 76.5% C 0.154 H 109.5°. Best body text is #000000 at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#BABA2C
RGBrgb(186, 186, 44)
HSLhsl(60, 62%, 45%)
HSVhsv(60, 76%, 73%)
CMYKcmyk(0%, 0%, 76.3%, 27.1%)
CIE-LABlab(73.38, -16.05, 66.35)
CIE-LCHlch(73.38, 68.26, 103.60°)
OKLaboklab(76.5% -0.0514 0.1449)
OKLCHoklch(76.5% 0.154 109.5)
XYZxyz(38.2647, 45.7399, 9.1954)
Luminance0.4574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABA2C #2C2CBA
analogous
#BA732C #BABA2C #73BA2C
triadic
#BABA2C #2CBABA #BA2CBA
tetradic
#BABA2C #2CBA73 #2C2CBA #BA2C73
square
#BABA2C #2CBA73 #2C2CBA #BA2C73
split-complementary
#BABA2C #2C73BA #732CBA
monochromatic
#575715 #898920 #BABA2C #D5D54E #E1E180

Accessibility & contrast

On white

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

On black

10.15
#BABA2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABA2C
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABA2C#FFFFFF#000000##000000
##BABA2C1.002.0710.1510.15
#FFFFFF2.071.0021.0021.00
#00000010.1521.001.001.00
##00000010.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B203
Deuteranopia (green-blind)
#CBB638
Tritanopia (blue-blind)
#C7AEA0
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #baba2c;
/* rgb */ color: rgb(186, 186, 44);
/* oklch */ color: oklch(76.5% 0.154 109.5);
Tailwind
colors: {
  custom: {
    50: '#d3ce71',
    500: '#baba2c',
    950: '#000000',
  },
}
SCSS
$custom: #baba2c;
$custom-light: #d3ce71;
$custom-dark: #000000;
JSON
{
  "hex": "#baba2c",
  "rgb": {
    "r": 186,
    "g": 186,
    "b": 44
  },
  "hsl": {
    "h": 60,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.76499,
    "c": 0.15379,
    "h": 109.5
  },
  "luminance": 0.45739
}

Semantic roles & 50–950 ramp

primary
#BABA2C
secondary
#7878CA
accent
#43E543
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BABA2C

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

Preview Lab → · Contrast checker → · Palette generator →

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