#98AF40#98AF40

#98AF40 is a light, vivid yellow-green. Relative luminance 0.377; OKLCH L 71.4% C 0.139 H 120.0°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#98AF40
RGBrgb(152, 175, 64)
HSLhsl(72, 46%, 47%)
HSVhsv(72, 63%, 69%)
CMYKcmyk(13.1%, 0%, 63.4%, 31.4%)
CIE-LABlab(67.80, -23.82, 52.52)
CIE-LCHlch(67.80, 57.67, 114.40°)
OKLaboklab(71.43% -0.0693 0.12)
OKLCHoklch(71.43% 0.139 120)
XYZxyz(29.2047, 37.7056, 10.5889)
Luminance0.3771 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AF40 #5740AF
analogous
#AF8F40 #98AF40 #61AF40
triadic
#98AF40 #4098AF #AF4098
tetradic
#98AF40 #40AF8F #5740AF #AF4061
square
#98AF40 #40AF8F #5740AF #AF4061
split-complementary
#98AF40 #4061AF #8F40AF
monochromatic
#4A551F #718230 #98AF40 #B3C765 #C9D792

Accessibility & contrast

On white

2.46
#98AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#98AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98AF40
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98AF40#FFFFFF#000000##000000
##98AF401.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA532
Deuteranopia (green-blind)
#B7A548
Tritanopia (blue-blind)
#A0A698
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #98af40;
/* rgb */ color: rgb(152, 175, 64);
/* oklch */ color: oklch(71.4% 0.139 120.0);
Tailwind
colors: {
  custom: {
    50: '#b9c67a',
    500: '#98af40',
    950: '#000000',
  },
}
SCSS
$custom: #98af40;
$custom-light: #b9c67a;
$custom-dark: #000000;
JSON
{
  "hex": "#98af40",
  "rgb": {
    "r": 152,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 72.432,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.71425,
    "c": 0.13859,
    "h": 120
  },
  "luminance": 0.37706
}

Semantic roles & 50–950 ramp

primary
#98AF40
secondary
#9488C3
accent
#52D66D
background
#FBFCF7
surface
#F6F8EE
border
#D0D1C9
text
#121309
muted
#81827B

Preview Lab

Preview with #98AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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