#BABA2F#BABA2F

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

Color values

HEX#BABA2F
RGBrgb(186, 186, 47)
HSLhsl(60, 60%, 46%)
HSVhsv(60, 75%, 73%)
CMYKcmyk(0%, 0%, 74.7%, 27.1%)
CIE-LABlab(73.39, -15.93, 65.41)
CIE-LCHlch(73.39, 67.32, 103.68°)
OKLaboklab(76.52% -0.0508 0.1435)
OKLCHoklch(76.52% 0.152 109.5)
XYZxyz(38.3231, 45.7633, 9.5032)
Luminance0.4576 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABA2F #2F2FBA
analogous
#BA742F #BABA2F #74BA2F
triadic
#BABA2F #2FBABA #BA2FBA
tetradic
#BABA2F #2FBA74 #2F2FBA #BA2F74
square
#BABA2F #2FBA74 #2F2FBA #BA2F74
split-complementary
#BABA2F #2F74BA #742FBA
monochromatic
#585816 #898923 #BABA2F #D3D353 #E0E084

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BABA2F#FFFFFF#000000##000000
##BABA2F1.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)
#C9B20E
Deuteranopia (green-blind)
#CBB63A
Tritanopia (blue-blind)
#C7AEA0
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #baba2f;
/* rgb */ color: rgb(186, 186, 47);
/* oklch */ color: oklch(76.5% 0.152 109.5);
Tailwind
colors: {
  custom: {
    50: '#d2ce73',
    500: '#baba2f',
    950: '#000000',
  },
}
SCSS
$custom: #baba2f;
$custom-light: #d2ce73;
$custom-dark: #000000;
JSON
{
  "hex": "#baba2f",
  "rgb": {
    "r": 186,
    "g": 186,
    "b": 47
  },
  "hsl": {
    "h": 60,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.76516,
    "c": 0.15222,
    "h": 109.5
  },
  "luminance": 0.45762
}

Semantic roles & 50–950 ramp

primary
#BABA2F
secondary
#7C7CC9
accent
#45E345
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BABA2F

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

Preview Lab → · Contrast checker → · Palette generator →

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