#BAB334#BAB334

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

Color values

HEX#BAB334
RGBrgb(186, 179, 52)
HSLhsl(57, 56%, 47%)
HSVhsv(57, 72%, 73%)
CMYKcmyk(0%, 3.8%, 72%, 27.1%)
CIE-LABlab(71.51, -12.13, 61.90)
CIE-LCHlch(71.51, 63.08, 101.09°)
OKLaboklab(75.02% -0.0398 0.137)
OKLCHoklch(75.02% 0.143 106.2)
XYZxyz(36.9911, 42.9286, 9.5857)
Luminance0.4293 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB334 #343BBA
analogous
#BA7034 #BAB334 #7EBA34
triadic
#BAB334 #34BAB3 #B334BA
tetradic
#BAB334 #34BA70 #343BBA #BA347E
square
#BAB334 #34BA70 #343BBA #BA347E
split-complementary
#BAB334 #347EBA #7034BA
monochromatic
#5A5719 #8A8527 #BAB334 #D1CB5A #DEDA8A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB334#FFFFFF#000000##000000
##BAB3341.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)
#C2AC1D
Deuteranopia (green-blind)
#C5B13D
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab334;
/* rgb */ color: rgb(186, 179, 52);
/* oklch */ color: oklch(75.0% 0.143 106.2);
Tailwind
colors: {
  custom: {
    50: '#d2c974',
    500: '#bab334',
    950: '#000000',
  },
}
SCSS
$custom: #bab334;
$custom-light: #d2c974;
$custom-dark: #000000;
JSON
{
  "hex": "#bab334",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 52
  },
  "hsl": {
    "h": 56.866,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.7502,
    "c": 0.14261,
    "h": 106.2
  },
  "luminance": 0.42927
}

Semantic roles & 50–950 ramp

primary
#BAB334
secondary
#8185C8
accent
#50E048
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB334

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

Preview Lab → · Contrast checker → · Palette generator →

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