#BAB24F#BAB24F

#BAB24F is a light, vivid yellow. Relative luminance 0.428; OKLCH L 75.0% C 0.121 H 104.7°. Best body text is #000000 at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#BAB24F
RGBrgb(186, 178, 79)
HSLhsl(56, 44%, 52%)
HSVhsv(56, 58%, 73%)
CMYKcmyk(0%, 4.3%, 57.5%, 27.1%)
CIE-LABlab(71.45, -9.95, 50.59)
CIE-LCHlch(71.45, 51.56, 101.13°)
OKLaboklab(75.04% -0.0306 0.1172)
OKLCHoklch(75.04% 0.121 104.7)
XYZxyz(37.5826, 42.8457, 13.6860)
Luminance0.4284 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB24F #4F57BA
analogous
#BA7D4F #BAB24F #8DBA4F
triadic
#BAB24F #4FBAB2 #B24FBA
tetradic
#BAB24F #4FBA7D #4F57BA #BA4F8D
square
#BAB24F #4FBA7D #4F57BA #BA4F8D
split-complementary
#BAB24F #4F8DBA #7D4FBA
monochromatic
#666228 #928C39 #BAB24F #CBC57B #DCD8A7

Accessibility & contrast

On white

2.19
#BAB24F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.57
#BAB24F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB24F
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB24F#FFFFFF#000000##000000
##BAB24F1.002.199.579.57
#FFFFFF2.191.0021.0021.00
#0000009.5721.001.001.00
##0000009.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AC45
Deuteranopia (green-blind)
#C3B154
Tritanopia (blue-blind)
#C7A79C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab24f;
/* rgb */ color: rgb(186, 178, 79);
/* oklch */ color: oklch(75.0% 0.121 104.7);
Tailwind
colors: {
  custom: {
    50: '#d1c884',
    500: '#bab24f',
    950: '#000000',
  },
}
SCSS
$custom: #bab24f;
$custom-light: #d1c884;
$custom-dark: #000000;
JSON
{
  "hex": "#bab24f",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 79
  },
  "hsl": {
    "h": 55.514,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.75044,
    "c": 0.1211,
    "h": 104.7
  },
  "luminance": 0.42844
}

Semantic roles & 50–950 ramp

primary
#BAB24F
secondary
#9B9ECA
accent
#5ED354
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB24F

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

Preview Lab → · Contrast checker → · Palette generator →

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