#BAB939#BAB939

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

Color values

HEX#BAB939
RGBrgb(186, 185, 57)
HSLhsl(60, 53%, 48%)
HSVhsv(60, 69%, 73%)
CMYKcmyk(0%, 0.5%, 69.4%, 27.1%)
CIE-LABlab(73.18, -14.95, 61.69)
CIE-LCHlch(73.18, 63.47, 103.62°)
OKLaboklab(76.36% -0.0472 0.1374)
OKLCHoklch(76.36% 0.145 109)
XYZxyz(38.3385, 45.4336, 10.6201)
Luminance0.4543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB939 #393ABA
analogous
#BA7939 #BAB939 #7ABA39
triadic
#BAB939 #39BAB9 #B939BA
tetradic
#BAB939 #39BA79 #393ABA #BA397A
square
#BAB939 #39BA79 #393ABA #BA397A
split-complementary
#BAB939 #397ABA #7939BA
monochromatic
#5C5C1C #8B8A2B #BAB939 #CFCE61 #DDDC90

Accessibility & contrast

On white

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

On black

10.09
#BAB939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB939
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB939#FFFFFF#000000##000000
##BAB9391.002.0810.0910.09
#FFFFFF2.081.0021.0021.00
#00000010.0921.001.001.00
##00000010.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bab939;
/* rgb */ color: rgb(186, 185, 57);
/* oklch */ color: oklch(76.4% 0.145 109.0);
Tailwind
colors: {
  custom: {
    50: '#d2cd77',
    500: '#bab939',
    950: '#000000',
  },
}
SCSS
$custom: #bab939;
$custom-light: #d2cd77;
$custom-dark: #000000;
JSON
{
  "hex": "#bab939",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 57
  },
  "hsl": {
    "h": 59.535,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.76362,
    "c": 0.14527,
    "h": 109
  },
  "luminance": 0.45432
}

Semantic roles & 50–950 ramp

primary
#BAB939
secondary
#8787C8
accent
#4CDC4B
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB939

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

Preview Lab → · Contrast checker → · Palette generator →

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