#BAB434#BAB434

#BAB434 is a light, vivid yellow. Relative luminance 0.433; OKLCH L 75.2% C 0.144 H 106.7°. Best body text is #000000 at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#BAB434
RGBrgb(186, 180, 52)
HSLhsl(57, 56%, 47%)
HSVhsv(57, 72%, 73%)
CMYKcmyk(0%, 3.2%, 72%, 27.1%)
CIE-LABlab(71.78, -12.64, 62.16)
CIE-LCHlch(71.78, 63.44, 101.50°)
OKLaboklab(75.24% -0.0412 0.1375)
OKLCHoklch(75.24% 0.144 106.7)
XYZxyz(37.1923, 43.3309, 9.6527)
Luminance0.4333 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB434 #343ABA
analogous
#BA7134 #BAB434 #7DBA34
triadic
#BAB434 #34BAB4 #B434BA
tetradic
#BAB434 #34BA71 #343ABA #BA347D
square
#BAB434 #34BA71 #343ABA #BA347D
split-complementary
#BAB434 #347DBA #7134BA
monochromatic
#5A5719 #8A8627 #BAB434 #D1CC5A #DEDB8A

Accessibility & contrast

On white

2.17
#BAB434 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.67
#BAB434 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB434
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB434#FFFFFF#000000##000000
##BAB4341.002.179.679.67
#FFFFFF2.171.0021.0021.00
#0000009.6721.001.001.00
##0000009.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD1D
Deuteranopia (green-blind)
#C6B23D
Tritanopia (blue-blind)
#C8A89B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab434;
/* rgb */ color: rgb(186, 180, 52);
/* oklch */ color: oklch(75.2% 0.144 106.7);
Tailwind
colors: {
  custom: {
    50: '#d2ca74',
    500: '#bab434',
    950: '#000000',
  },
}
SCSS
$custom: #bab434;
$custom-light: #d2ca74;
$custom-dark: #000000;
JSON
{
  "hex": "#bab434",
  "rgb": {
    "r": 186,
    "g": 180,
    "b": 52
  },
  "hsl": {
    "h": 57.313,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.75238,
    "c": 0.14355,
    "h": 106.7
  },
  "luminance": 0.4333
}

Semantic roles & 50–950 ramp

primary
#BAB434
secondary
#8185C8
accent
#4FE048
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB434

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

Preview Lab → · Contrast checker → · Palette generator →

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