#BAB530#BAB530

#BAB530 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.4% C 0.147 H 107.2°. Best body text is #000000 at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#BAB530
RGBrgb(186, 181, 48)
HSLhsl(58, 59%, 46%)
HSVhsv(58, 74%, 73%)
CMYKcmyk(0%, 2.7%, 74.2%, 27.1%)
CIE-LABlab(72.03, -13.34, 63.80)
CIE-LCHlch(72.03, 65.18, 101.81°)
OKLaboklab(75.43% -0.0435 0.1403)
OKLCHoklch(75.43% 0.147 107.2)
XYZxyz(37.3086, 43.7015, 9.2657)
Luminance0.4370 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB530 #3035BA
analogous
#BA7030 #BAB530 #7ABA30
triadic
#BAB530 #30BAB5 #B530BA
tetradic
#BAB530 #30BA70 #3035BA #BA307A
square
#BAB530 #30BA70 #3035BA #BA307A
split-complementary
#BAB530 #307ABA #7030BA
monochromatic
#595617 #898623 #BAB530 #D3CE54 #DFDC85

Accessibility & contrast

On white

2.16
#BAB530 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.74
#BAB530 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB530
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB530#FFFFFF#000000##000000
##BAB5301.002.169.749.74
#FFFFFF2.161.0021.0021.00
#0000009.7421.001.001.00
##0000009.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE14
Deuteranopia (green-blind)
#C7B33A
Tritanopia (blue-blind)
#C8A99C
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab530;
/* rgb */ color: rgb(186, 181, 48);
/* oklch */ color: oklch(75.4% 0.147 107.2);
Tailwind
colors: {
  custom: {
    50: '#d2ca72',
    500: '#bab530',
    950: '#000000',
  },
}
SCSS
$custom: #bab530;
$custom-light: #d2ca72;
$custom-dark: #000000;
JSON
{
  "hex": "#bab530",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 48
  },
  "hsl": {
    "h": 57.826,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.75429,
    "c": 0.14685,
    "h": 107.2
  },
  "luminance": 0.437
}

Semantic roles & 50–950 ramp

primary
#BAB530
secondary
#7D80C9
accent
#4BE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB530

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

Preview Lab → · Contrast checker → · Palette generator →

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