#98B41F#98B41F

#98B41F is a light, vivid yellow-green. Relative luminance 0.394; OKLCH L 72.4% C 0.164 H 120.6°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#98B41F
RGBrgb(152, 180, 31)
HSLhsl(71, 71%, 41%)
HSVhsv(71, 83%, 71%)
CMYKcmyk(15.6%, 0%, 82.8%, 29.4%)
CIE-LABlab(69.05, -28.00, 65.21)
CIE-LCHlch(69.05, 70.97, 113.24°)
OKLaboklab(72.37% -0.0836 0.1415)
OKLCHoklch(72.37% 0.164 120.6)
XYZxyz(29.5181, 39.4169, 7.3492)
Luminance0.3942 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98B41F #3B1FB4
analogous
#B4861F #98B41F #4EB41F
triadic
#98B41F #1F98B4 #B41F98
tetradic
#98B41F #1FB486 #3B1FB4 #B41F4E
square
#98B41F #1FB486 #3B1FB4 #B41F4E
split-complementary
#98B41F #1F4EB4 #861FB4
monochromatic
#404C0D #6C8016 #98B41F #BDDC34 #CEE568

Accessibility & contrast

On white

2.36
#98B41F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#98B41F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98B41F
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98B41F#FFFFFF#000000##000000
##98B41F1.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BCA930
Tritanopia (blue-blind)
#A1AA9A
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #98b41f;
/* rgb */ color: rgb(152, 180, 31);
/* oklch */ color: oklch(72.4% 0.164 120.6);
Tailwind
colors: {
  custom: {
    50: '#baca6a',
    500: '#98b41f',
    950: '#000000',
  },
}
SCSS
$custom: #98b41f;
$custom-light: #baca6a;
$custom-dark: #000000;
JSON
{
  "hex": "#98b41f",
  "rgb": {
    "r": 152,
    "g": 180,
    "b": 31
  },
  "hsl": {
    "h": 71.275,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72369,
    "c": 0.16438,
    "h": 120.6
  },
  "luminance": 0.39417
}

Semantic roles & 50–950 ramp

primary
#98B41F
secondary
#7764CB
accent
#3AED5C
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #98B41F

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

Preview Lab → · Contrast checker → · Palette generator →

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