#B9D21F#B9D21F

#B9D21F is a light, vivid yellow. Relative luminance 0.565; OKLCH L 81.7% C 0.184 H 118.2°. Best body text is #000000 at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#B9D21F
RGBrgb(185, 210, 31)
HSLhsl(68, 74%, 47%)
HSVhsv(68, 85%, 82%)
CMYKcmyk(11.9%, 0%, 85.2%, 17.6%)
CIE-LABlab(79.90, -28.63, 75.35)
CIE-LCHlch(79.90, 80.60, 110.81°)
OKLaboklab(81.7% -0.087 0.1621)
OKLCHoklch(81.7% 0.184 118.2)
XYZxyz(43.3026, 56.5068, 9.9218)
Luminance0.5651 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9D21F #381FD2
analogous
#D2921F #B9D21F #5FD21F
triadic
#B9D21F #1FB9D2 #D21FB9
tetradic
#B9D21F #1FD292 #381FD2 #D21F5F
square
#B9D21F #1FD292 #381FD2 #D21F5F
split-complementary
#B9D21F #1F5FD2 #921FD2
monochromatic
#5B670F #8A9D17 #B9D21F #CFE44A #DDEC7F

Accessibility & contrast

On white

1.71
#B9D21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.30
#B9D21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9D21F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9D21F#FFFFFF#000000##000000
##B9D21F1.001.7112.3012.30
#FFFFFF1.711.0021.0021.00
#00000012.3021.001.001.00
##00000012.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C600
Deuteranopia (green-blind)
#DEC735
Tritanopia (blue-blind)
#C5C6B3
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #b9d21f;
/* rgb */ color: rgb(185, 210, 31);
/* oklch */ color: oklch(81.7% 0.184 118.2);
Tailwind
colors: {
  custom: {
    50: '#d2df70',
    500: '#b9d21f',
    950: '#000000',
  },
}
SCSS
$custom: #b9d21f;
$custom-light: #d2df70;
$custom-dark: #000000;
JSON
{
  "hex": "#b9d21f",
  "rgb": {
    "r": 185,
    "g": 210,
    "b": 31
  },
  "hsl": {
    "h": 68.38,
    "s": 74.274,
    "l": 47.255
  },
  "oklch": {
    "l": 0.81699,
    "c": 0.184,
    "h": 118.2
  },
  "luminance": 0.56506
}

Semantic roles & 50–950 ramp

primary
#B9D21F
secondary
#2F2471
accent
#37F151
background
#FEFEFB
surface
#FCFCF1
border
#D5D5CB
text
#151509
muted
#84847D

Preview Lab

Preview with #B9D21F

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

Preview Lab → · Contrast checker → · Palette generator →

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