#BABA2D#BABA2D

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

Color values

HEX#BABA2D
RGBrgb(186, 186, 45)
HSLhsl(60, 61%, 45%)
HSVhsv(60, 76%, 73%)
CMYKcmyk(0%, 0%, 75.8%, 27.1%)
CIE-LABlab(73.38, -16.01, 66.04)
CIE-LCHlch(73.38, 67.95, 103.63°)
OKLaboklab(76.5% -0.0512 0.1445)
OKLCHoklch(76.5% 0.153 109.5)
XYZxyz(38.2837, 45.7475, 9.2956)
Luminance0.4575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABA2D #2D2DBA
analogous
#BA732D #BABA2D #73BA2D
triadic
#BABA2D #2DBABA #BA2DBA
tetradic
#BABA2D #2DBA73 #2D2DBA #BA2D73
square
#BABA2D #2DBA73 #2D2DBA #BA2D73
split-complementary
#BABA2D #2D73BA #732DBA
monochromatic
#575715 #898921 #BABA2D #D5D550 #E0E081

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BABA2D#FFFFFF#000000##000000
##BABA2D1.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)
#C9B207
Deuteranopia (green-blind)
#CBB639
Tritanopia (blue-blind)
#C7AEA0
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #baba2d;
/* rgb */ color: rgb(186, 186, 45);
/* oklch */ color: oklch(76.5% 0.153 109.5);
Tailwind
colors: {
  custom: {
    50: '#d3ce72',
    500: '#baba2d',
    950: '#000000',
  },
}
SCSS
$custom: #baba2d;
$custom-light: #d3ce72;
$custom-dark: #000000;
JSON
{
  "hex": "#baba2d",
  "rgb": {
    "r": 186,
    "g": 186,
    "b": 45
  },
  "hsl": {
    "h": 60,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.76504,
    "c": 0.15328,
    "h": 109.5
  },
  "luminance": 0.45746
}

Semantic roles & 50–950 ramp

primary
#BABA2D
secondary
#7979C9
accent
#44E444
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BABA2D

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

Preview Lab → · Contrast checker → · Palette generator →

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