#BAB335#BAB335

#BAB335 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.0% C 0.142 H 106.2°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#BAB335
RGBrgb(186, 179, 53)
HSLhsl(57, 56%, 47%)
HSVhsv(57, 72%, 73%)
CMYKcmyk(0%, 3.8%, 71.5%, 27.1%)
CIE-LABlab(71.51, -12.08, 61.54)
CIE-LCHlch(71.51, 62.72, 101.11°)
OKLaboklab(75.03% -0.0395 0.1364)
OKLCHoklch(75.03% 0.142 106.2)
XYZxyz(37.0139, 42.9377, 9.7055)
Luminance0.4294 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB335 #353CBA
analogous
#BA7135 #BAB335 #7FBA35
triadic
#BAB335 #35BAB3 #B335BA
tetradic
#BAB335 #35BA71 #353CBA #BA357F
square
#BAB335 #35BA71 #353CBA #BA357F
split-complementary
#BAB335 #357FBA #7135BA
monochromatic
#5B571A #8A8527 #BAB335 #D0CA5C #DEDA8B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB335#FFFFFF#000000##000000
##BAB3351.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)
#C2AC1F
Deuteranopia (green-blind)
#C5B13E
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab335;
/* rgb */ color: rgb(186, 179, 53);
/* oklch */ color: oklch(75.0% 0.142 106.2);
Tailwind
colors: {
  custom: {
    50: '#d2c975',
    500: '#bab335',
    950: '#000000',
  },
}
SCSS
$custom: #bab335;
$custom-light: #d2c975;
$custom-dark: #000000;
JSON
{
  "hex": "#bab335",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 53
  },
  "hsl": {
    "h": 56.842,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.75027,
    "c": 0.14199,
    "h": 106.2
  },
  "luminance": 0.42936
}

Semantic roles & 50–950 ramp

primary
#BAB335
secondary
#8286C8
accent
#51DF49
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB335

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

Preview Lab → · Contrast checker → · Palette generator →

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