#BAB53B#BAB53B

#BAB53B is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.5% C 0.140 H 107.0°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#BAB53B
RGBrgb(186, 181, 59)
HSLhsl(58, 52%, 48%)
HSVhsv(58, 68%, 73%)
CMYKcmyk(0%, 2.7%, 68.3%, 27.1%)
CIE-LABlab(72.10, -12.80, 59.85)
CIE-LCHlch(72.10, 61.20, 102.07°)
OKLaboklab(75.51% -0.0409 0.1339)
OKLCHoklch(75.51% 0.14 107)
XYZxyz(37.5644, 43.8039, 10.6131)
Luminance0.4380 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB53B #3B40BA
analogous
#BA753B #BAB53B #7FBA3B
triadic
#BAB53B #3BBAB5 #B53BBA
tetradic
#BAB53B #3BBA75 #3B40BA #BA3B7F
square
#BAB53B #3BBA75 #3B40BA #BA3B7F
split-complementary
#BAB53B #3B7FBA #753BBA
monochromatic
#5D5B1E #8C882C #BAB53B #CECA64 #DDDA93

Accessibility & contrast

On white

2.15
#BAB53B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.76
#BAB53B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB53B
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB53B#FFFFFF#000000##000000
##BAB53B1.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE29
Deuteranopia (green-blind)
#C7B343
Tritanopia (blue-blind)
#C7A99D
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab53b;
/* rgb */ color: rgb(186, 181, 59);
/* oklch */ color: oklch(75.5% 0.140 107.0);
Tailwind
colors: {
  custom: {
    50: '#d2ca78',
    500: '#bab53b',
    950: '#000000',
  },
}
SCSS
$custom: #bab53b;
$custom-light: #d2ca78;
$custom-dark: #000000;
JSON
{
  "hex": "#bab53b",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 59
  },
  "hsl": {
    "h": 57.638,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.75506,
    "c": 0.13997,
    "h": 107
  },
  "luminance": 0.43803
}

Semantic roles & 50–950 ramp

primary
#BAB53B
secondary
#898BC8
accent
#52DB4D
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B

Preview Lab

Preview with #BAB53B

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

Preview Lab → · Contrast checker → · Palette generator →

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