#BAB348#BAB348

#BAB348 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 75.2% C 0.128 H 105.5°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#BAB348
RGBrgb(186, 179, 72)
HSLhsl(56, 45%, 51%)
HSVhsv(56, 61%, 73%)
CMYKcmyk(0%, 3.8%, 61.3%, 27.1%)
CIE-LABlab(71.66, -10.97, 53.98)
CIE-LCHlch(71.66, 55.08, 101.49°)
OKLaboklab(75.19% -0.0343 0.1235)
OKLCHoklch(75.19% 0.128 105.5)
XYZxyz(37.5408, 43.1484, 12.4806)
Luminance0.4315 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB348 #484FBA
analogous
#BA7A48 #BAB348 #88BA48
triadic
#BAB348 #48BAB3 #B348BA
tetradic
#BAB348 #48BA7A #484FBA #BA4888
square
#BAB348 #48BA7A #484FBA #BA4888
split-complementary
#BAB348 #4888BA #7A48BA
monochromatic
#625F25 #8F8936 #BAB348 #CBC574 #DCD8A1

Accessibility & contrast

On white

2.18
#BAB348 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.63
#BAB348 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB348
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB348#FFFFFF#000000##000000
##BAB3481.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AD3C
Deuteranopia (green-blind)
#C4B24E
Tritanopia (blue-blind)
#C7A89C
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab348;
/* rgb */ color: rgb(186, 179, 72);
/* oklch */ color: oklch(75.2% 0.128 105.5);
Tailwind
colors: {
  custom: {
    50: '#d1c980',
    500: '#bab348',
    950: '#000000',
  },
}
SCSS
$custom: #bab348;
$custom-light: #d1c980;
$custom-dark: #000000;
JSON
{
  "hex": "#bab348",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 72
  },
  "hsl": {
    "h": 56.316,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.75187,
    "c": 0.12815,
    "h": 105.5
  },
  "luminance": 0.43147
}

Semantic roles & 50–950 ramp

primary
#BAB348
secondary
#9699C8
accent
#5BD553
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB348

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

Preview Lab → · Contrast checker → · Palette generator →

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