#98A822#98A822

#98A822 is a light, vivid yellow. Relative luminance 0.348; OKLCH L 69.6% C 0.150 H 116.6°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#98A822
RGBrgb(152, 168, 34)
HSLhsl(67, 66%, 40%)
HSVhsv(67, 80%, 66%)
CMYKcmyk(9.5%, 0%, 79.8%, 34.1%)
CIE-LABlab(65.59, -22.02, 61.34)
CIE-LCHlch(65.59, 65.18, 109.75°)
OKLaboklab(69.58% -0.067 0.1338)
OKLCHoklch(69.58% 0.15 116.6)
XYZxyz(27.2410, 34.7965, 6.7944)
Luminance0.3480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A822 #3222A8
analogous
#A87522 #98A822 #55A822
triadic
#98A822 #2298A8 #A82298
tetradic
#98A822 #22A875 #3222A8 #A82255
square
#98A822 #22A875 #3222A8 #A82255
split-complementary
#98A822 #2255A8 #7522A8
monochromatic
#3C420D #6A7518 #98A822 #C2D532 #D1E065

Accessibility & contrast

On white

2.64
#98A822 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#98A822 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A822
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A822#FFFFFF#000000##000000
##98A8221.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F00
Deuteranopia (green-blind)
#B3A02F
Tritanopia (blue-blind)
#A29E90
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #98a822;
/* rgb */ color: rgb(152, 168, 34);
/* oklch */ color: oklch(69.6% 0.150 116.6);
Tailwind
colors: {
  custom: {
    50: '#bac16a',
    500: '#98a822',
    950: '#000000',
  },
}
SCSS
$custom: #98a822;
$custom-light: #bac16a;
$custom-dark: #000000;
JSON
{
  "hex": "#98a822",
  "rgb": {
    "r": 152,
    "g": 168,
    "b": 34
  },
  "hsl": {
    "h": 67.164,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.69584,
    "c": 0.14961,
    "h": 116.6
  },
  "luminance": 0.34796
}

Semantic roles & 50–950 ramp

primary
#98A822
secondary
#6D61C5
accent
#3FE953
background
#FBFBF6
surface
#F7F7EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #98A822

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

Preview Lab → · Contrast checker → · Palette generator →

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