#BAB427#BAB427

#BAB427 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.2% C 0.151 H 106.9°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#BAB427
RGBrgb(186, 180, 39)
HSLhsl(58, 65%, 44%)
HSVhsv(58, 79%, 73%)
CMYKcmyk(0%, 3.2%, 79%, 27.1%)
CIE-LABlab(71.71, -13.18, 66.36)
CIE-LCHlch(71.71, 67.66, 101.23°)
OKLaboklab(75.16% -0.0439 0.144)
OKLCHoklch(75.16% 0.151 106.9)
XYZxyz(36.9387, 43.2295, 8.3174)
Luminance0.4323 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB427 #272DBA
analogous
#BA6B27 #BAB427 #77BA27
triadic
#BAB427 #27BAB4 #B427BA
tetradic
#BAB427 #27BA6B #272DBA #BA2777
square
#BAB427 #27BA6B #272DBA #BA2777
split-complementary
#BAB427 #2777BA #6B27BA
monochromatic
#555212 #87831C #BAB427 #D8D246 #E3DE79

Accessibility & contrast

On white

2.18
#BAB427 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.65
#BAB427 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB427
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB427#FFFFFF#000000##000000
##BAB4271.002.189.659.65
#FFFFFF2.181.0021.0021.00
#0000009.6521.001.001.00
##0000009.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD00
Deuteranopia (green-blind)
#C7B233
Tritanopia (blue-blind)
#C8A89A
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab427;
/* rgb */ color: rgb(186, 180, 39);
/* oklch */ color: oklch(75.2% 0.151 106.9);
Tailwind
colors: {
  custom: {
    50: '#d3ca6e',
    500: '#bab427',
    950: '#000000',
  },
}
SCSS
$custom: #bab427;
$custom-light: #d3ca6e;
$custom-dark: #000000;
JSON
{
  "hex": "#bab427",
  "rgb": {
    "r": 186,
    "g": 180,
    "b": 39
  },
  "hsl": {
    "h": 57.551,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.75161,
    "c": 0.15057,
    "h": 106.9
  },
  "luminance": 0.43228
}

Semantic roles & 50–950 ramp

primary
#BAB427
secondary
#7276CB
accent
#46E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB427

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

Preview Lab → · Contrast checker → · Palette generator →

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