#BAC221#BAC221

#BAC221 is a light, vivid yellow. Relative luminance 0.491; OKLCH L 78.2% C 0.167 H 112.7°. Best body text is #000000 at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#BAC221
RGBrgb(186, 194, 33)
HSLhsl(63, 71%, 45%)
HSVhsv(63, 83%, 76%)
CMYKcmyk(4.1%, 0%, 83%, 23.9%)
CIE-LABlab(75.53, -20.42, 71.27)
CIE-LCHlch(75.53, 74.13, 105.99°)
OKLaboklab(78.21% -0.0644 0.1536)
OKLCHoklch(78.21% 0.167 112.7)
XYZxyz(39.8174, 49.1334, 8.8248)
Luminance0.4913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC221 #2921C2
analogous
#C27921 #BAC221 #6AC221
triadic
#BAC221 #21BAC2 #C221BA
tetradic
#BAC221 #21C279 #2921C2 #C2216A
square
#BAC221 #21C279 #2921C2 #C2216A
split-complementary
#BAC221 #216AC2 #7921C2
monochromatic
#56590F #888E18 #BAC221 #D7DF41 #E2E876

Accessibility & contrast

On white

1.94
#BAC221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.83
#BAC221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC221
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC221#FFFFFF#000000##000000
##BAC2211.001.9410.8310.83
#FFFFFF1.941.0021.0021.00
#00000010.8321.001.001.00
##00000010.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B800
Deuteranopia (green-blind)
#D2BC32
Tritanopia (blue-blind)
#C7B6A6
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #bac221;
/* rgb */ color: rgb(186, 194, 33);
/* oklch */ color: oklch(78.2% 0.167 112.7);
Tailwind
colors: {
  custom: {
    50: '#d3d46e',
    500: '#bac221',
    950: '#000000',
  },
}
SCSS
$custom: #bac221;
$custom-light: #d3d46e;
$custom-dark: #000000;
JSON
{
  "hex": "#bac221",
  "rgb": {
    "r": 186,
    "g": 194,
    "b": 33
  },
  "hsl": {
    "h": 62.981,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.78211,
    "c": 0.1665,
    "h": 112.7
  },
  "luminance": 0.49132
}

Semantic roles & 50–950 ramp

primary
#BAC221
secondary
#7570CF
accent
#3AEE43
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151408
muted
#83827B

Preview Lab

Preview with #BAC221

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

Preview Lab → · Contrast checker → · Palette generator →

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