#BAB927#BAB927

#BAB927 is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.3% C 0.155 H 109.2°. Best body text is #000000 at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#BAB927
RGBrgb(186, 185, 39)
HSLhsl(60, 65%, 44%)
HSVhsv(60, 79%, 73%)
CMYKcmyk(0%, 0.5%, 79%, 27.1%)
CIE-LABlab(73.08, -15.73, 67.57)
CIE-LCHlch(73.08, 69.38, 103.10°)
OKLaboklab(76.25% -0.051 0.1466)
OKLCHoklch(76.25% 0.155 109.2)
XYZxyz(37.9664, 45.2847, 8.6600)
Luminance0.4528 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB927 #2728BA
analogous
#BA7027 #BAB927 #72BA27
triadic
#BAB927 #27BAB9 #B927BA
tetradic
#BAB927 #27BA70 #2728BA #BA2772
square
#BAB927 #27BA70 #2728BA #BA2772
split-complementary
#BAB927 #2772BA #7027BA
monochromatic
#555412 #87871C #BAB927 #D8D746 #E3E279

Accessibility & contrast

On white

2.09
#BAB927 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.06
#BAB927 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB927
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB927#FFFFFF#000000##000000
##BAB9271.002.0910.0610.06
#FFFFFF2.091.0021.0021.00
#00000010.0621.001.001.00
##00000010.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#CAB534
Tritanopia (blue-blind)
#C8AD9E
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab927;
/* rgb */ color: rgb(186, 185, 39);
/* oklch */ color: oklch(76.3% 0.155 109.2);
Tailwind
colors: {
  custom: {
    50: '#d3cd6f',
    500: '#bab927',
    950: '#000000',
  },
}
SCSS
$custom: #bab927;
$custom-light: #d3cd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#bab927",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 39
  },
  "hsl": {
    "h": 59.592,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.76253,
    "c": 0.15524,
    "h": 109.2
  },
  "luminance": 0.45284
}

Semantic roles & 50–950 ramp

primary
#BAB927
secondary
#7273CB
accent
#41E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB927

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

Preview Lab → · Contrast checker → · Palette generator →

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