#B9C221#B9C221

#B9C221 is a light, vivid yellow. Relative luminance 0.490; OKLCH L 78.1% C 0.167 H 113.1°. Best body text is #000000 at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#B9C221
RGBrgb(185, 194, 33)
HSLhsl(63, 71%, 45%)
HSVhsv(63, 83%, 76%)
CMYKcmyk(4.6%, 0%, 83%, 23.9%)
CIE-LABlab(75.46, -20.85, 71.17)
CIE-LCHlch(75.46, 74.16, 106.33°)
OKLaboklab(78.13% -0.0655 0.1534)
OKLCHoklch(78.13% 0.167 113.1)
XYZxyz(39.5752, 49.0086, 8.8134)
Luminance0.4901 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9C221 #2A21C2
analogous
#C27B21 #B9C221 #69C221
triadic
#B9C221 #21B9C2 #C221B9
tetradic
#B9C221 #21C27B #2A21C2 #C22169
square
#B9C221 #21C27B #2A21C2 #C22169
split-complementary
#B9C221 #2169C2 #7B21C2
monochromatic
#55590F #878E18 #B9C221 #D6DF41 #E1E876

Accessibility & contrast

On white

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

On black

10.80
#B9C221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9C221
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9C221#FFFFFF#000000##000000
##B9C2211.001.9410.8010.80
#FFFFFF1.941.0021.0021.00
#00000010.8021.001.001.00
##00000010.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b9c221;
/* rgb */ color: rgb(185, 194, 33);
/* oklch */ color: oklch(78.1% 0.167 113.1);
Tailwind
colors: {
  custom: {
    50: '#d2d46e',
    500: '#b9c221',
    950: '#000000',
  },
}
SCSS
$custom: #b9c221;
$custom-light: #d2d46e;
$custom-dark: #000000;
JSON
{
  "hex": "#b9c221",
  "rgb": {
    "r": 185,
    "g": 194,
    "b": 33
  },
  "hsl": {
    "h": 63.354,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.78129,
    "c": 0.16678,
    "h": 113.1
  },
  "luminance": 0.49008
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B9C221

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

Preview Lab → · Contrast checker → · Palette generator →

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