#BAB030#BAB030

#BAB030 is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.3% C 0.142 H 104.8°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#BAB030
RGBrgb(186, 176, 48)
HSLhsl(56, 59%, 46%)
HSVhsv(56, 74%, 73%)
CMYKcmyk(0%, 5.4%, 74.2%, 27.1%)
CIE-LABlab(70.67, -10.76, 62.52)
CIE-LCHlch(70.67, 63.44, 99.77°)
OKLaboklab(74.34% -0.0363 0.1375)
OKLCHoklch(74.34% 0.142 104.8)
XYZxyz(36.3101, 41.7046, 8.9329)
Luminance0.4170 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB030 #303ABA
analogous
#BA6B30 #BAB030 #7FBA30
triadic
#BAB030 #30BAB0 #B030BA
tetradic
#BAB030 #30BA6B #303ABA #BA307F
square
#BAB030 #30BA6B #303ABA #BA307F
split-complementary
#BAB030 #307FBA #6B30BA
monochromatic
#595417 #898223 #BAB030 #D3CA54 #DFD985

Accessibility & contrast

On white

2.25
#BAB030 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.34
#BAB030 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB030
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB030#FFFFFF#000000##000000
##BAB0301.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA17
Deuteranopia (green-blind)
#C3AF39
Tritanopia (blue-blind)
#C8A497
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #bab030;
/* rgb */ color: rgb(186, 176, 48);
/* oklch */ color: oklch(74.3% 0.142 104.8);
Tailwind
colors: {
  custom: {
    50: '#d2c772',
    500: '#bab030',
    950: '#000000',
  },
}
SCSS
$custom: #bab030;
$custom-light: #d2c772;
$custom-dark: #000000;
JSON
{
  "hex": "#bab030",
  "rgb": {
    "r": 186,
    "g": 176,
    "b": 48
  },
  "hsl": {
    "h": 55.652,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.74344,
    "c": 0.14224,
    "h": 104.8
  },
  "luminance": 0.41703
}

Semantic roles & 50–950 ramp

primary
#BAB030
secondary
#7D82C9
accent
#51E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB030

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

Preview Lab → · Contrast checker → · Palette generator →

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