#BAB727#BAB727

#BAB727 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.8% C 0.153 H 108.3°. Best body text is #000000 at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#BAB727
RGBrgb(186, 183, 39)
HSLhsl(59, 65%, 44%)
HSVhsv(59, 79%, 73%)
CMYKcmyk(0%, 1.6%, 79%, 27.1%)
CIE-LABlab(72.53, -14.71, 67.09)
CIE-LCHlch(72.53, 68.68, 102.37°)
OKLaboklab(75.82% -0.0481 0.1456)
OKLCHoklch(75.82% 0.153 108.3)
XYZxyz(37.5509, 44.4538, 8.5215)
Luminance0.4445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB727 #272ABA
analogous
#BA6E27 #BAB727 #73BA27
triadic
#BAB727 #27BAB7 #B727BA
tetradic
#BAB727 #27BA6E #272ABA #BA2773
square
#BAB727 #27BA6E #272ABA #BA2773
split-complementary
#BAB727 #2773BA #6E27BA
monochromatic
#555312 #87851C #BAB727 #D8D546 #E3E179

Accessibility & contrast

On white

2.12
#BAB727 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.89
#BAB727 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB727
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB727#FFFFFF#000000##000000
##BAB7271.002.129.899.89
#FFFFFF2.121.0021.0021.00
#0000009.8921.001.001.00
##0000009.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7AF00
Deuteranopia (green-blind)
#C9B434
Tritanopia (blue-blind)
#C8AB9D
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #bab727;
/* rgb */ color: rgb(186, 183, 39);
/* oklch */ color: oklch(75.8% 0.153 108.3);
Tailwind
colors: {
  custom: {
    50: '#d3cc6f',
    500: '#bab727',
    950: '#000000',
  },
}
SCSS
$custom: #bab727;
$custom-light: #d3cc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#bab727",
  "rgb": {
    "r": 186,
    "g": 183,
    "b": 39
  },
  "hsl": {
    "h": 58.776,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.75816,
    "c": 0.15335,
    "h": 108.3
  },
  "luminance": 0.44453
}

Semantic roles & 50–950 ramp

primary
#BAB727
secondary
#7274CB
accent
#43E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB727

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

Preview Lab → · Contrast checker → · Palette generator →

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