#98B226#98B226

#98B226 is a light, vivid yellow-green. Relative luminance 0.387; OKLCH L 71.9% C 0.159 H 120.1°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#98B226
RGBrgb(152, 178, 38)
HSLhsl(71, 65%, 42%)
HSVhsv(71, 79%, 70%)
CMYKcmyk(14.6%, 0%, 78.7%, 30.2%)
CIE-LABlab(68.50, -26.78, 62.79)
CIE-LCHlch(68.50, 68.26, 113.10°)
OKLaboklab(71.93% -0.0798 0.1375)
OKLCHoklch(71.93% 0.159 120.1)
XYZxyz(29.2197, 38.6562, 7.7554)
Luminance0.3866 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98B226 #4026B2
analogous
#B28626 #98B226 #52B226
triadic
#98B226 #2698B2 #B22698
tetradic
#98B226 #26B286 #4026B2 #B22652
square
#98B226 #26B286 #4026B2 #B22652
split-complementary
#98B226 #2652B2 #8626B2
monochromatic
#424D10 #6D801B #98B226 #BAD63F #CCE172

Accessibility & contrast

On white

2.41
#98B226 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#98B226 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98B226
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98B226#FFFFFF#000000##000000
##98B2261.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#BBA734
Tritanopia (blue-blind)
#A1A898
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #98b226;
/* rgb */ color: rgb(152, 178, 38);
/* oklch */ color: oklch(71.9% 0.159 120.1);
Tailwind
colors: {
  custom: {
    50: '#bac96d',
    500: '#98b226',
    950: '#000000',
  },
}
SCSS
$custom: #98b226;
$custom-light: #bac96d;
$custom-dark: #000000;
JSON
{
  "hex": "#98b226",
  "rgb": {
    "r": 152,
    "g": 178,
    "b": 38
  },
  "hsl": {
    "h": 71.143,
    "s": 64.815,
    "l": 42.353
  },
  "oklch": {
    "l": 0.71934,
    "c": 0.15899,
    "h": 120.1
  },
  "luminance": 0.38656
}

Semantic roles & 50–950 ramp

primary
#98B226
secondary
#7D6CC8
accent
#40E85F
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121308
muted
#81827B

Preview Lab

Preview with #98B226

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

Preview Lab → · Contrast checker → · Palette generator →

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