#98B522#98B522

#98B522 is a light, vivid yellow-green. Relative luminance 0.398; OKLCH L 72.6% C 0.164 H 120.9°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#98B522
RGBrgb(152, 181, 34)
HSLhsl(72, 68%, 42%)
HSVhsv(72, 81%, 71%)
CMYKcmyk(16%, 0%, 81.2%, 29%)
CIE-LABlab(69.35, -28.38, 64.69)
CIE-LCHlch(69.35, 70.64, 113.69°)
OKLaboklab(72.62% -0.0845 0.1409)
OKLCHoklch(72.62% 0.164 120.9)
XYZxyz(29.7621, 39.8387, 7.6348)
Luminance0.3984 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98B522 #3F22B5
analogous
#B58922 #98B522 #4EB522
triadic
#98B522 #2298B5 #B52298
tetradic
#98B522 #22B589 #3F22B5 #B5224E
square
#98B522 #22B589 #3F22B5 #B5224E
split-complementary
#98B522 #224EB5 #8922B5
monochromatic
#414E0F #6D8118 #98B522 #BADA3A #CCE46E

Accessibility & contrast

On white

2.34
#98B522 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#98B522 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98B522
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98B522#FFFFFF#000000##000000
##98B5221.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#BDAA32
Tritanopia (blue-blind)
#A1AB9B
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #98b522;
/* rgb */ color: rgb(152, 181, 34);
/* oklch */ color: oklch(72.6% 0.164 120.9);
Tailwind
colors: {
  custom: {
    50: '#bacb6c',
    500: '#98b522',
    950: '#000000',
  },
}
SCSS
$custom: #98b522;
$custom-light: #bacb6c;
$custom-dark: #000000;
JSON
{
  "hex": "#98b522",
  "rgb": {
    "r": 152,
    "g": 181,
    "b": 34
  },
  "hsl": {
    "h": 71.837,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72616,
    "c": 0.16427,
    "h": 120.9
  },
  "luminance": 0.39839
}

Semantic roles & 50–950 ramp

primary
#98B522
secondary
#7C69CA
accent
#3DEB5F
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121308
muted
#81827B

Preview Lab

Preview with #98B522

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

Preview Lab → · Contrast checker → · Palette generator →

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