#98AD21#98AD21

#98AD21 is a light, vivid yellow. Relative luminance 0.367; OKLCH L 70.7% C 0.156 H 118.4°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#98AD21
RGBrgb(152, 173, 33)
HSLhsl(69, 68%, 40%)
HSVhsv(69, 81%, 68%)
CMYKcmyk(12.1%, 0%, 80.9%, 32.2%)
CIE-LABlab(67.03, -24.54, 62.91)
CIE-LCHlch(67.03, 67.52, 111.31°)
OKLaboklab(70.74% -0.074 0.1369)
OKLCHoklch(70.74% 0.156 118.4)
XYZxyz(28.1677, 36.6726, 7.0332)
Luminance0.3667 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AD21 #3621AD
analogous
#AD7C21 #98AD21 #52AD21
triadic
#98AD21 #2198AD #AD2198
tetradic
#98AD21 #21AD7C #3621AD #AD2152
square
#98AD21 #21AD7C #3621AD #AD2152
split-complementary
#98AD21 #2152AD #7C21AD
monochromatic
#3E460D #6B7A17 #98AD21 #BFD833 #CFE266

Accessibility & contrast

On white

2.52
#98AD21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#98AD21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98AD21
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98AD21#FFFFFF#000000##000000
##98AD211.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#B7A42F
Tritanopia (blue-blind)
#A2A394
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #98ad21;
/* rgb */ color: rgb(152, 173, 33);
/* oklch */ color: oklch(70.7% 0.156 118.4);
Tailwind
colors: {
  custom: {
    50: '#bac56a',
    500: '#98ad21',
    950: '#000000',
  },
}
SCSS
$custom: #98ad21;
$custom-light: #bac56a;
$custom-dark: #000000;
JSON
{
  "hex": "#98ad21",
  "rgb": {
    "r": 152,
    "g": 173,
    "b": 33
  },
  "hsl": {
    "h": 69,
    "s": 67.961,
    "l": 40.392
  },
  "oklch": {
    "l": 0.70742,
    "c": 0.15564,
    "h": 118.4
  },
  "luminance": 0.36672
}

Semantic roles & 50–950 ramp

primary
#98AD21
secondary
#7262C7
accent
#3DEB57
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121207
muted
#81817A

Preview Lab

Preview with #98AD21

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

Preview Lab → · Contrast checker → · Palette generator →

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