#BAB339#BAB339

#BAB339 is a light, vivid yellow. Relative luminance 0.430; OKLCH L 75.1% C 0.139 H 106.1°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#BAB339
RGBrgb(186, 179, 57)
HSLhsl(57, 53%, 48%)
HSVhsv(57, 69%, 73%)
CMYKcmyk(0%, 3.8%, 69.4%, 27.1%)
CIE-LABlab(71.54, -11.88, 60.06)
CIE-LCHlch(71.54, 61.23, 101.19°)
OKLaboklab(75.06% -0.0385 0.134)
OKLCHoklch(75.06% 0.139 106.1)
XYZxyz(37.1098, 42.9760, 10.2105)
Luminance0.4298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB339 #3940BA
analogous
#BA7239 #BAB339 #81BA39
triadic
#BAB339 #39BAB3 #B339BA
tetradic
#BAB339 #39BA72 #3940BA #BA3981
square
#BAB339 #39BA72 #3940BA #BA3981
split-complementary
#BAB339 #3981BA #7239BA
monochromatic
#5C591C #8B862B #BAB339 #CFC961 #DDD990

Accessibility & contrast

On white

2.19
#BAB339 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.59
#BAB339 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB339
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB339#FFFFFF#000000##000000
##BAB3391.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC26
Deuteranopia (green-blind)
#C5B241
Tritanopia (blue-blind)
#C8A79B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab339;
/* rgb */ color: rgb(186, 179, 57);
/* oklch */ color: oklch(75.1% 0.139 106.1);
Tailwind
colors: {
  custom: {
    50: '#d2c977',
    500: '#bab339',
    950: '#000000',
  },
}
SCSS
$custom: #bab339;
$custom-light: #d2c977;
$custom-dark: #000000;
JSON
{
  "hex": "#bab339",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 57
  },
  "hsl": {
    "h": 56.744,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.75056,
    "c": 0.1394,
    "h": 106.1
  },
  "luminance": 0.42975
}

Semantic roles & 50–950 ramp

primary
#BAB339
secondary
#878AC8
accent
#53DC4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB339

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

Preview Lab → · Contrast checker → · Palette generator →

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