#BAB23A#BAB23A

#BAB23A is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.8% C 0.138 H 105.5°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#BAB23A
RGBrgb(186, 178, 58)
HSLhsl(56, 52%, 48%)
HSVhsv(56, 69%, 73%)
CMYKcmyk(0%, 4.3%, 68.8%, 27.1%)
CIE-LABlab(71.27, -11.31, 59.41)
CIE-LCHlch(71.27, 60.48, 100.78°)
OKLaboklab(74.85% -0.0368 0.1328)
OKLCHoklch(74.85% 0.138 105.5)
XYZxyz(36.9353, 42.5867, 10.2766)
Luminance0.4259 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB23A #3A42BA
analogous
#BA723A #BAB23A #82BA3A
triadic
#BAB23A #3ABAB2 #B23ABA
tetradic
#BAB23A #3ABA72 #3A42BA #BA3A82
square
#BAB23A #3ABA72 #3A42BA #BA3A82
split-complementary
#BAB23A #3A82BA #723ABA
monochromatic
#5D591D #8B852B #BAB23A #CEC863 #DDD892

Accessibility & contrast

On white

2.21
#BAB23A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.52
#BAB23A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB23A
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB23A#FFFFFF#000000##000000
##BAB23A1.002.219.529.52
#FFFFFF2.211.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC28
Deuteranopia (green-blind)
#C4B142
Tritanopia (blue-blind)
#C8A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab23a;
/* rgb */ color: rgb(186, 178, 58);
/* oklch */ color: oklch(74.8% 0.138 105.5);
Tailwind
colors: {
  custom: {
    50: '#d2c877',
    500: '#bab23a',
    950: '#000000',
  },
}
SCSS
$custom: #bab23a;
$custom-light: #d2c877;
$custom-dark: #000000;
JSON
{
  "hex": "#bab23a",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 58
  },
  "hsl": {
    "h": 56.25,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.74847,
    "c": 0.13777,
    "h": 105.5
  },
  "luminance": 0.42585
}

Semantic roles & 50–950 ramp

primary
#BAB23A
secondary
#888CC8
accent
#55DC4C
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB23A

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

Preview Lab → · Contrast checker → · Palette generator →

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