#BAB438#BAB438

#BAB438 is a light, vivid yellow. Relative luminance 0.434; OKLCH L 75.3% C 0.141 H 106.6°. Best body text is #000000 at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#BAB438
RGBrgb(186, 180, 56)
HSLhsl(57, 54%, 47%)
HSVhsv(57, 70%, 73%)
CMYKcmyk(0%, 3.2%, 69.9%, 27.1%)
CIE-LABlab(71.80, -12.45, 60.71)
CIE-LCHlch(71.80, 61.97, 101.58°)
OKLaboklab(75.27% -0.0402 0.1352)
OKLCHoklch(75.27% 0.141 106.6)
XYZxyz(37.2862, 43.3684, 10.1475)
Luminance0.4337 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB438 #383EBA
analogous
#BA7338 #BAB438 #7FBA38
triadic
#BAB438 #38BAB4 #B438BA
tetradic
#BAB438 #38BA73 #383EBA #BA387F
square
#BAB438 #38BA73 #383EBA #BA387F
split-complementary
#BAB438 #387FBA #7338BA
monochromatic
#5C591C #8B862A #BAB438 #CFCA60 #DDDA8F

Accessibility & contrast

On white

2.17
#BAB438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.67
#BAB438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB438
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB438#FFFFFF#000000##000000
##BAB4381.002.179.679.67
#FFFFFF2.171.0021.0021.00
#0000009.6721.001.001.00
##0000009.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD24
Deuteranopia (green-blind)
#C6B241
Tritanopia (blue-blind)
#C8A89B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab438;
/* rgb */ color: rgb(186, 180, 56);
/* oklch */ color: oklch(75.3% 0.141 106.6);
Tailwind
colors: {
  custom: {
    50: '#d2ca76',
    500: '#bab438',
    950: '#000000',
  },
}
SCSS
$custom: #bab438;
$custom-light: #d2ca76;
$custom-dark: #000000;
JSON
{
  "hex": "#bab438",
  "rgb": {
    "r": 186,
    "g": 180,
    "b": 56
  },
  "hsl": {
    "h": 57.231,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.75266,
    "c": 0.14102,
    "h": 106.6
  },
  "luminance": 0.43367
}

Semantic roles & 50–950 ramp

primary
#BAB438
secondary
#8689C8
accent
#51DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB438

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

Preview Lab → · Contrast checker → · Palette generator →

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