#98AF28#98AF28

#98AF28 is a light, vivid yellow-green. Relative luminance 0.375; OKLCH L 71.2% C 0.155 H 119.2°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#98AF28
RGBrgb(152, 175, 40)
HSLhsl(70, 63%, 42%)
HSVhsv(70, 77%, 69%)
CMYKcmyk(13.1%, 0%, 77.1%, 31.4%)
CIE-LABlab(67.64, -25.23, 61.39)
CIE-LCHlch(67.64, 66.37, 112.34°)
OKLaboklab(71.24% -0.0754 0.1349)
OKLCHoklch(71.24% 0.155 119.2)
XYZxyz(28.6625, 37.4887, 7.7332)
Luminance0.3749 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AF28 #3F28AF
analogous
#AF8328 #98AF28 #55AF28
triadic
#98AF28 #2898AF #AF2898
tetradic
#98AF28 #28AF83 #3F28AF #AF2855
square
#98AF28 #28AF83 #3F28AF #AF2855
split-complementary
#98AF28 #2855AF #8328AF
monochromatic
#414B11 #6D7D1D #98AF28 #BAD441 #CCDF73

Accessibility & contrast

On white

2.47
#98AF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#98AF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98AF28
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98AF28#FFFFFF#000000##000000
##98AF281.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA502
Deuteranopia (green-blind)
#B8A535
Tritanopia (blue-blind)
#A1A596
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #98af28;
/* rgb */ color: rgb(152, 175, 40);
/* oklch */ color: oklch(71.2% 0.155 119.2);
Tailwind
colors: {
  custom: {
    50: '#bac66d',
    500: '#98af28',
    950: '#000000',
  },
}
SCSS
$custom: #98af28;
$custom-light: #bac66d;
$custom-dark: #000000;
JSON
{
  "hex": "#98af28",
  "rgb": {
    "r": 152,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 70.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.71244,
    "c": 0.15453,
    "h": 119.2
  },
  "luminance": 0.37489
}

Semantic roles & 50–950 ramp

primary
#98AF28
secondary
#7C6DC6
accent
#42E65E
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121308
muted
#81827B

Preview Lab

Preview with #98AF28

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

Preview Lab → · Contrast checker → · Palette generator →

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