#98AF22#98AF22

#98AF22 is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.2% C 0.157 H 119.1°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#98AF22
RGBrgb(152, 175, 34)
HSLhsl(70, 67%, 41%)
HSVhsv(70, 81%, 69%)
CMYKcmyk(13.1%, 0%, 80.6%, 31.4%)
CIE-LABlab(67.61, -25.48, 63.15)
CIE-LCHlch(67.61, 68.09, 111.97°)
OKLaboklab(71.21% -0.0765 0.1376)
OKLCHoklch(71.21% 0.157 119.1)
XYZxyz(28.5682, 37.4510, 7.2368)
Luminance0.3745 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AF22 #3922AF
analogous
#AF7F22 #98AF22 #51AF22
triadic
#98AF22 #2298AF #AF2298
tetradic
#98AF22 #22AF7F #3922AF #AF2251
square
#98AF22 #22AF7F #3922AF #AF2251
split-complementary
#98AF22 #2251AF #7F22AF
monochromatic
#3F490E #6B7C18 #98AF22 #BED836 #CEE269

Accessibility & contrast

On white

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

On black

8.49
#98AF22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98AF22
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98AF22#FFFFFF#000000##000000
##98AF221.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA500
Deuteranopia (green-blind)
#B8A531
Tritanopia (blue-blind)
#A1A595
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #98af22;
/* rgb */ color: rgb(152, 175, 34);
/* oklch */ color: oklch(71.2% 0.157 119.1);
Tailwind
colors: {
  custom: {
    50: '#bac66b',
    500: '#98af22',
    950: '#000000',
  },
}
SCSS
$custom: #98af22;
$custom-light: #bac66b;
$custom-dark: #000000;
JSON
{
  "hex": "#98af22",
  "rgb": {
    "r": 152,
    "g": 175,
    "b": 34
  },
  "hsl": {
    "h": 69.787,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.71213,
    "c": 0.15745,
    "h": 119.1
  },
  "luminance": 0.37451
}

Semantic roles & 50–950 ramp

primary
#98AF22
secondary
#7565C8
accent
#3DEA5A
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #98AF22

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

Preview Lab → · Contrast checker → · Palette generator →

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