#BAB938#BAB938

#BAB938 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.4% C 0.146 H 109.0°. Best body text is #000000 at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#BAB938
RGBrgb(186, 185, 56)
HSLhsl(60, 54%, 47%)
HSVhsv(60, 70%, 73%)
CMYKcmyk(0%, 0.5%, 69.9%, 27.1%)
CIE-LABlab(73.17, -15.00, 62.06)
CIE-LCHlch(73.17, 63.84, 103.59°)
OKLaboklab(76.35% -0.0474 0.138)
OKLCHoklch(76.35% 0.146 109)
XYZxyz(38.3138, 45.4237, 10.4900)
Luminance0.4542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB938 #3839BA
analogous
#BA7838 #BAB938 #7ABA38
triadic
#BAB938 #38BAB9 #B938BA
tetradic
#BAB938 #38BA78 #3839BA #BA387A
square
#BAB938 #38BA78 #3839BA #BA387A
split-complementary
#BAB938 #387ABA #7838BA
monochromatic
#5C5B1C #8B8A2A #BAB938 #CFCE60 #DDDD8F

Accessibility & contrast

On white

2.08
#BAB938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.08
#BAB938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB938
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB938#FFFFFF#000000##000000
##BAB9381.002.0810.0810.08
#FFFFFF2.081.0021.0021.00
#00000010.0821.001.001.00
##00000010.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B122
Deuteranopia (green-blind)
#CAB641
Tritanopia (blue-blind)
#C7ADA0
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #bab938;
/* rgb */ color: rgb(186, 185, 56);
/* oklch */ color: oklch(76.4% 0.146 109.0);
Tailwind
colors: {
  custom: {
    50: '#d2cd77',
    500: '#bab938',
    950: '#000000',
  },
}
SCSS
$custom: #bab938;
$custom-light: #d2cd77;
$custom-dark: #000000;
JSON
{
  "hex": "#bab938",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 56
  },
  "hsl": {
    "h": 59.538,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.76355,
    "c": 0.14591,
    "h": 109
  },
  "luminance": 0.45423
}

Semantic roles & 50–950 ramp

primary
#BAB938
secondary
#8686C8
accent
#4CDD4B
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB938

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

Preview Lab → · Contrast checker → · Palette generator →

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