#BAB330#BAB330

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

Color values

HEX#BAB330
RGBrgb(186, 179, 48)
HSLhsl(57, 59%, 46%)
HSVhsv(57, 74%, 73%)
CMYKcmyk(0%, 3.8%, 74.2%, 27.1%)
CIE-LABlab(71.48, -12.31, 63.29)
CIE-LCHlch(71.48, 64.48, 101.01°)
OKLaboklab(74.99% -0.0407 0.1392)
OKLCHoklch(74.99% 0.145 106.3)
XYZxyz(36.9048, 42.8941, 9.1311)
Luminance0.4289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB330 #3037BA
analogous
#BA6E30 #BAB330 #7CBA30
triadic
#BAB330 #30BAB3 #B330BA
tetradic
#BAB330 #30BA6E #3037BA #BA307C
square
#BAB330 #30BA6E #3037BA #BA307C
split-complementary
#BAB330 #307CBA #6E30BA
monochromatic
#595517 #898423 #BAB330 #D3CD54 #DFDB85

Accessibility & contrast

On white

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

On black

9.58
#BAB330 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB330
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB330#FFFFFF#000000##000000
##BAB3301.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC15
Deuteranopia (green-blind)
#C6B13A
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab330;
/* rgb */ color: rgb(186, 179, 48);
/* oklch */ color: oklch(75.0% 0.145 106.3);
Tailwind
colors: {
  custom: {
    50: '#d2c972',
    500: '#bab330',
    950: '#000000',
  },
}
SCSS
$custom: #bab330;
$custom-light: #d2c972;
$custom-dark: #000000;
JSON
{
  "hex": "#bab330",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 48
  },
  "hsl": {
    "h": 56.957,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.74994,
    "c": 0.14498,
    "h": 106.3
  },
  "luminance": 0.42893
}

Semantic roles & 50–950 ramp

primary
#BAB330
secondary
#7D81C9
accent
#4EE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB330

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

Preview Lab → · Contrast checker → · Palette generator →

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