#98AE21#98AE21

#98AE21 is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.0% C 0.157 H 118.7°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#98AE21
RGBrgb(152, 174, 33)
HSLhsl(69, 68%, 41%)
HSVhsv(69, 81%, 68%)
CMYKcmyk(12.6%, 0%, 81%, 31.8%)
CIE-LABlab(67.32, -25.03, 63.17)
CIE-LCHlch(67.32, 67.94, 111.61°)
OKLaboklab(70.97% -0.0754 0.1375)
OKLCHoklch(70.97% 0.157 118.7)
XYZxyz(28.3601, 37.0575, 7.0973)
Luminance0.3706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AE21 #3721AE
analogous
#AE7D21 #98AE21 #51AE21
triadic
#98AE21 #2198AE #AE2198
tetradic
#98AE21 #21AE7D #3721AE #AE2151
square
#98AE21 #21AE7D #3721AE #AE2151
split-complementary
#98AE21 #2151AE #7D21AE
monochromatic
#3E470D #6B7B17 #98AE21 #BFD834 #CFE267

Accessibility & contrast

On white

2.50
#98AE21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#98AE21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98AE21
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98AE21#FFFFFF#000000##000000
##98AE211.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#B7A430
Tritanopia (blue-blind)
#A2A495
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #98ae21;
/* rgb */ color: rgb(152, 174, 33);
/* oklch */ color: oklch(71.0% 0.157 118.7);
Tailwind
colors: {
  custom: {
    50: '#bac66a',
    500: '#98ae21',
    950: '#000000',
  },
}
SCSS
$custom: #98ae21;
$custom-light: #bac66a;
$custom-dark: #000000;
JSON
{
  "hex": "#98ae21",
  "rgb": {
    "r": 152,
    "g": 174,
    "b": 33
  },
  "hsl": {
    "h": 69.362,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.70975,
    "c": 0.15677,
    "h": 118.7
  },
  "luminance": 0.37057
}

Semantic roles & 50–950 ramp

primary
#98AE21
secondary
#7363C8
accent
#3DEB58
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #98AE21

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

Preview Lab → · Contrast checker → · Palette generator →

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