#BAB548#BAB548

#BAB548 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.6% C 0.130 H 106.6°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#BAB548
RGBrgb(186, 181, 72)
HSLhsl(57, 45%, 51%)
HSVhsv(57, 61%, 73%)
CMYKcmyk(0%, 2.7%, 61.3%, 27.1%)
CIE-LABlab(72.20, -12.01, 54.57)
CIE-LCHlch(72.20, 55.87, 102.41°)
OKLaboklab(75.62% -0.0373 0.1247)
OKLCHoklch(75.62% 0.13 106.6)
XYZxyz(37.9445, 43.9559, 12.6152)
Luminance0.4395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB548 #484DBA
analogous
#BA7C48 #BAB548 #86BA48
triadic
#BAB548 #48BAB5 #B548BA
tetradic
#BAB548 #48BA7C #484DBA #BA4886
square
#BAB548 #48BA7C #484DBA #BA4886
split-complementary
#BAB548 #4886BA #7C48BA
monochromatic
#626025 #8F8B36 #BAB548 #CBC774 #DCD9A1

Accessibility & contrast

On white

2.14
#BAB548 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#BAB548 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB548
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB548#FFFFFF#000000##000000
##BAB5481.002.149.799.79
#FFFFFF2.141.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF3B
Deuteranopia (green-blind)
#C6B34E
Tritanopia (blue-blind)
#C7AA9E
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab548;
/* rgb */ color: rgb(186, 181, 72);
/* oklch */ color: oklch(75.6% 0.130 106.6);
Tailwind
colors: {
  custom: {
    50: '#d1ca80',
    500: '#bab548',
    950: '#000000',
  },
}
SCSS
$custom: #bab548;
$custom-light: #d1ca80;
$custom-dark: #000000;
JSON
{
  "hex": "#bab548",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 72
  },
  "hsl": {
    "h": 57.368,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.7562,
    "c": 0.13016,
    "h": 106.6
  },
  "luminance": 0.43955
}

Semantic roles & 50–950 ramp

primary
#BAB548
secondary
#9698C8
accent
#59D553
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB548

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

Preview Lab → · Contrast checker → · Palette generator →

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