#BAB738#BAB738

#BAB738 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 75.9% C 0.144 H 108.0°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#BAB738
RGBrgb(186, 183, 56)
HSLhsl(59, 54%, 47%)
HSVhsv(59, 70%, 73%)
CMYKcmyk(0%, 1.6%, 69.9%, 27.1%)
CIE-LABlab(72.62, -13.98, 61.52)
CIE-LCHlch(72.62, 63.09, 102.80°)
OKLaboklab(75.92% -0.0446 0.1369)
OKLCHoklch(75.92% 0.144 108)
XYZxyz(37.8984, 44.5928, 10.3515)
Luminance0.4459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB738 #383BBA
analogous
#BA7638 #BAB738 #7CBA38
triadic
#BAB738 #38BAB7 #B738BA
tetradic
#BAB738 #38BA76 #383BBA #BA387C
square
#BAB738 #38BA76 #383BBA #BA387C
split-complementary
#BAB738 #387CBA #7638BA
monochromatic
#5C5A1C #8B892A #BAB738 #CFCD60 #DDDC8F

Accessibility & contrast

On white

2.12
#BAB738 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.92
#BAB738 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB738
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB738#FFFFFF#000000##000000
##BAB7381.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B023
Deuteranopia (green-blind)
#C8B441
Tritanopia (blue-blind)
#C7AB9E
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #bab738;
/* rgb */ color: rgb(186, 183, 56);
/* oklch */ color: oklch(75.9% 0.144 108.0);
Tailwind
colors: {
  custom: {
    50: '#d2cc77',
    500: '#bab738',
    950: '#000000',
  },
}
SCSS
$custom: #bab738;
$custom-light: #d2cc77;
$custom-dark: #000000;
JSON
{
  "hex": "#bab738",
  "rgb": {
    "r": 186,
    "g": 183,
    "b": 56
  },
  "hsl": {
    "h": 58.615,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.75919,
    "c": 0.14393,
    "h": 108
  },
  "luminance": 0.44592
}

Semantic roles & 50–950 ramp

primary
#BAB738
secondary
#8687C8
accent
#4EDD4B
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB738

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

Preview Lab → · Contrast checker → · Palette generator →

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