#98AF2F#98AF2F

#98AF2F is a light, vivid yellow-green. Relative luminance 0.375; OKLCH L 71.3% C 0.151 H 119.4°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#98AF2F
RGBrgb(152, 175, 47)
HSLhsl(71, 58%, 44%)
HSVhsv(71, 73%, 69%)
CMYKcmyk(13.1%, 0%, 73.1%, 31.4%)
CIE-LABlab(67.68, -24.89, 59.08)
CIE-LCHlch(67.68, 64.11, 112.85°)
OKLaboklab(71.29% -0.0739 0.1312)
OKLCHoklch(71.29% 0.151 119.4)
XYZxyz(28.7925, 37.5407, 8.4180)
Luminance0.3754 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AF2F #462FAF
analogous
#AF862F #98AF2F #58AF2F
triadic
#98AF2F #2F98AF #AF2F98
tetradic
#98AF2F #2FAF86 #462FAF #AF2F58
square
#98AF2F #2FAF86 #462FAF #AF2F58
split-complementary
#98AF2F #2F58AF #862FAF
monochromatic
#444F15 #6E7F22 #98AF2F #B7CF4C #CBDC7C

Accessibility & contrast

On white

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

On black

8.51
#98AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98AF2F
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98AF2F#FFFFFF#000000##000000
##98AF2F1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #98af2f;
/* rgb */ color: rgb(152, 175, 47);
/* oklch */ color: oklch(71.3% 0.151 119.4);
Tailwind
colors: {
  custom: {
    50: '#bac671',
    500: '#98af2f',
    950: '#000000',
  },
}
SCSS
$custom: #98af2f;
$custom-light: #bac671;
$custom-dark: #000000;
JSON
{
  "hex": "#98af2f",
  "rgb": {
    "r": 152,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 70.781,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.71288,
    "c": 0.15058,
    "h": 119.4
  },
  "luminance": 0.37541
}

Semantic roles & 50–950 ramp

primary
#98AF2F
secondary
#8475C4
accent
#47E163
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121308
muted
#81827B

Preview Lab

Preview with #98AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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