#BAB627#BAB627

#BAB627 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.6% C 0.152 H 107.9°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#BAB627
RGBrgb(186, 182, 39)
HSLhsl(58, 65%, 44%)
HSVhsv(58, 79%, 73%)
CMYKcmyk(0%, 2.2%, 79%, 27.1%)
CIE-LABlab(72.26, -14.20, 66.85)
CIE-LCHlch(72.26, 68.34, 102.00°)
OKLaboklab(75.6% -0.0467 0.1451)
OKLCHoklch(75.6% 0.152 107.9)
XYZxyz(37.3454, 44.0428, 8.4530)
Luminance0.4404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB627 #272BBA
analogous
#BA6D27 #BAB627 #75BA27
triadic
#BAB627 #27BAB6 #B627BA
tetradic
#BAB627 #27BA6D #272BBA #BA2775
square
#BAB627 #27BA6D #272BBA #BA2775
split-complementary
#BAB627 #2775BA #6D27BA
monochromatic
#555312 #87841C #BAB627 #D8D446 #E3E079

Accessibility & contrast

On white

2.14
#BAB627 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.81
#BAB627 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB627
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB627#FFFFFF#000000##000000
##BAB6271.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF00
Deuteranopia (green-blind)
#C8B334
Tritanopia (blue-blind)
#C8AA9C
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab627;
/* rgb */ color: rgb(186, 182, 39);
/* oklch */ color: oklch(75.6% 0.152 107.9);
Tailwind
colors: {
  custom: {
    50: '#d3cb6f',
    500: '#bab627',
    950: '#000000',
  },
}
SCSS
$custom: #bab627;
$custom-light: #d3cb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#bab627",
  "rgb": {
    "r": 186,
    "g": 182,
    "b": 39
  },
  "hsl": {
    "h": 58.367,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.75597,
    "c": 0.15242,
    "h": 107.9
  },
  "luminance": 0.44041
}

Semantic roles & 50–950 ramp

primary
#BAB627
secondary
#7275CB
accent
#44E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB627

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

Preview Lab → · Contrast checker → · Palette generator →

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