#BAB227#BAB227

#BAB227 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.7% C 0.149 H 106.0°. Best body text is #000000 at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#BAB227
RGBrgb(186, 178, 39)
HSLhsl(57, 65%, 44%)
HSVhsv(57, 79%, 73%)
CMYKcmyk(0%, 4.3%, 79%, 27.1%)
CIE-LABlab(71.16, -12.15, 65.88)
CIE-LCHlch(71.16, 66.99, 100.45°)
OKLaboklab(74.73% -0.041 0.143)
OKLCHoklch(74.73% 0.149 106)
XYZxyz(36.5379, 42.4278, 8.1838)
Luminance0.4243 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB227 #272FBA
analogous
#BA6927 #BAB227 #79BA27
triadic
#BAB227 #27BAB2 #B227BA
tetradic
#BAB227 #27BA69 #272FBA #BA2779
square
#BAB227 #27BA69 #272FBA #BA2779
split-complementary
#BAB227 #2779BA #6927BA
monochromatic
#555112 #87821C #BAB227 #D8D046 #E3DD79

Accessibility & contrast

On white

2.21
#BAB227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.49
#BAB227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB227
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB227#FFFFFF#000000##000000
##BAB2271.002.219.499.49
#FFFFFF2.211.0021.0021.00
#0000009.4921.001.001.00
##0000009.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C5B133
Tritanopia (blue-blind)
#C8A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab227;
/* rgb */ color: rgb(186, 178, 39);
/* oklch */ color: oklch(74.7% 0.149 106.0);
Tailwind
colors: {
  custom: {
    50: '#d3c86e',
    500: '#bab227',
    950: '#000000',
  },
}
SCSS
$custom: #bab227;
$custom-light: #d3c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#bab227",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 39
  },
  "hsl": {
    "h": 56.735,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.74726,
    "c": 0.14876,
    "h": 106
  },
  "luminance": 0.42426
}

Semantic roles & 50–950 ramp

primary
#BAB227
secondary
#7277CB
accent
#49E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB227

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

Preview Lab → · Contrast checker → · Palette generator →

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