#98B331#98B331

#98B331 is a light, vivid yellow-green. Relative luminance 0.391; OKLCH L 72.2% C 0.154 H 120.7°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#98B331
RGBrgb(152, 179, 49)
HSLhsl(72, 57%, 45%)
HSVhsv(72, 73%, 70%)
CMYKcmyk(15.1%, 0%, 72.6%, 29.8%)
CIE-LABlab(68.85, -26.73, 59.50)
CIE-LCHlch(68.85, 65.23, 114.19°)
OKLaboklab(72.23% -0.0788 0.1324)
OKLCHoklch(72.23% 0.154 120.7)
XYZxyz(29.6239, 39.1374, 8.8988)
Luminance0.3914 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98B331 #4C31B3
analogous
#B38D31 #98B331 #57B331
triadic
#98B331 #3198B3 #B33198
tetradic
#98B331 #31B38D #4C31B3 #B33157
square
#98B331 #31B38D #4C31B3 #B33157
split-complementary
#98B331 #3157B3 #8D31B3
monochromatic
#465317 #6F8324 #98B331 #B5D052 #CADD82

Accessibility & contrast

On white

2.38
#98B331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#98B331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98B331
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98B331#FFFFFF#000000##000000
##98B3311.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA818
Deuteranopia (green-blind)
#BBA83C
Tritanopia (blue-blind)
#A1AA9A
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #98b331;
/* rgb */ color: rgb(152, 179, 49);
/* oklch */ color: oklch(72.2% 0.154 120.7);
Tailwind
colors: {
  custom: {
    50: '#bac972',
    500: '#98b331',
    950: '#000000',
  },
}
SCSS
$custom: #98b331;
$custom-light: #bac972;
$custom-dark: #000000;
JSON
{
  "hex": "#98b331",
  "rgb": {
    "r": 152,
    "g": 179,
    "b": 49
  },
  "hsl": {
    "h": 72.462,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.72234,
    "c": 0.1541,
    "h": 120.7
  },
  "luminance": 0.39137
}

Semantic roles & 50–950 ramp

primary
#98B331
secondary
#8A7AC6
accent
#48E067
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121308
muted
#81827B

Preview Lab

Preview with #98B331

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

Preview Lab → · Contrast checker → · Palette generator →

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