#98B31A#98B31A

#98B31A is a light, vivid yellow-green. Relative luminance 0.390; OKLCH L 72.1% C 0.165 H 120.2°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#98B31A
RGBrgb(152, 179, 26)
HSLhsl(71, 75%, 40%)
HSVhsv(71, 85%, 70%)
CMYKcmyk(15.1%, 0%, 85.5%, 29.8%)
CIE-LABlab(68.74, -27.68, 66.14)
CIE-LCHlch(68.74, 71.70, 112.71°)
OKLaboklab(72.11% -0.083 0.1427)
OKLCHoklch(72.11% 0.165 120.2)
XYZxyz(29.2561, 38.9903, 6.9617)
Luminance0.3899 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98B31A #351AB3
analogous
#B3811A #98B31A #4CB31A
triadic
#98B31A #1A98B3 #B31A98
tetradic
#98B31A #1AB381 #351AB3 #B31A4C
square
#98B31A #1AB381 #351AB3 #B31A4C
split-complementary
#98B31A #1A4CB3 #811AB3
monochromatic
#3D480A #6B7E12 #98B31A #C0E02A #D0E860

Accessibility & contrast

On white

2.39
#98B31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#98B31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98B31A
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98B31A#FFFFFF#000000##000000
##98B31A1.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#BCA82C
Tritanopia (blue-blind)
#A1A999
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #98b31a;
/* rgb */ color: rgb(152, 179, 26);
/* oklch */ color: oklch(72.1% 0.165 120.2);
Tailwind
colors: {
  custom: {
    50: '#bac969',
    500: '#98b31a',
    950: '#000000',
  },
}
SCSS
$custom: #98b31a;
$custom-light: #bac969;
$custom-dark: #000000;
JSON
{
  "hex": "#98b31a",
  "rgb": {
    "r": 152,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 70.588,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.72115,
    "c": 0.16512,
    "h": 120.2
  },
  "luminance": 0.3899
}

Semantic roles & 50–950 ramp

primary
#98B31A
secondary
#705DCC
accent
#37F157
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #98B31A

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

Preview Lab → · Contrast checker → · Palette generator →

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