#98B221#98B221

#98B221 is a light, vivid yellow-green. Relative luminance 0.386; OKLCH L 71.9% C 0.161 H 120.0°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#98B221
RGBrgb(152, 178, 33)
HSLhsl(71, 69%, 41%)
HSVhsv(71, 81%, 70%)
CMYKcmyk(14.6%, 0%, 81.5%, 30.2%)
CIE-LABlab(68.48, -26.97, 64.19)
CIE-LCHlch(68.48, 69.62, 112.79°)
OKLaboklab(71.91% -0.0807 0.1397)
OKLCHoklch(71.91% 0.161 120)
XYZxyz(29.1444, 38.6261, 7.3588)
Luminance0.3863 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98B221 #3B21B2
analogous
#B28421 #98B221 #50B221
triadic
#98B221 #2198B2 #B22198
tetradic
#98B221 #21B284 #3B21B2 #B22150
square
#98B221 #21B284 #3B21B2 #B22150
split-complementary
#98B221 #2150B2 #8421B2
monochromatic
#404B0E #6C7E17 #98B221 #BDDA36 #CEE36A

Accessibility & contrast

On white

2.41
#98B221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#98B221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98B221
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98B221#FFFFFF#000000##000000
##98B2211.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#BBA731
Tritanopia (blue-blind)
#A1A898
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #98b221;
/* rgb */ color: rgb(152, 178, 33);
/* oklch */ color: oklch(71.9% 0.161 120.0);
Tailwind
colors: {
  custom: {
    50: '#bac96b',
    500: '#98b221',
    950: '#000000',
  },
}
SCSS
$custom: #98b221;
$custom-light: #bac96b;
$custom-dark: #000000;
JSON
{
  "hex": "#98b221",
  "rgb": {
    "r": 152,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 70.759,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.71909,
    "c": 0.16128,
    "h": 120
  },
  "luminance": 0.38626
}

Semantic roles & 50–950 ramp

primary
#98B221
secondary
#7766C9
accent
#3CEC5C
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #98B221

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

Preview Lab → · Contrast checker → · Palette generator →

#98B221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva