#98AC21#98AC21

#98AC21 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 70.5% C 0.155 H 118.0°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#98AC21
RGBrgb(152, 172, 33)
HSLhsl(69, 68%, 40%)
HSVhsv(69, 81%, 67%)
CMYKcmyk(11.6%, 0%, 80.8%, 32.5%)
CIE-LABlab(66.74, -24.04, 62.65)
CIE-LCHlch(66.74, 67.11, 110.99°)
OKLaboklab(70.51% -0.0727 0.1364)
OKLCHoklch(70.51% 0.155 118)
XYZxyz(27.9766, 36.2905, 6.9695)
Luminance0.3629 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AC21 #3521AC
analogous
#AC7A21 #98AC21 #53AC21
triadic
#98AC21 #2198AC #AC2198
tetradic
#98AC21 #21AC7A #3521AC #AC2153
square
#98AC21 #21AC7A #3521AC #AC2153
split-complementary
#98AC21 #2153AC #7A21AC
monochromatic
#3D450D #6B7917 #98AC21 #C0D832 #D0E266

Accessibility & contrast

On white

2.54
#98AC21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#98AC21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98AC21
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98AC21#FFFFFF#000000##000000
##98AC211.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#B6A32F
Tritanopia (blue-blind)
#A2A293
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #98ac21;
/* rgb */ color: rgb(152, 172, 33);
/* oklch */ color: oklch(70.5% 0.155 118.0);
Tailwind
colors: {
  custom: {
    50: '#bac46a',
    500: '#98ac21',
    950: '#000000',
  },
}
SCSS
$custom: #98ac21;
$custom-light: #bac46a;
$custom-dark: #000000;
JSON
{
  "hex": "#98ac21",
  "rgb": {
    "r": 152,
    "g": 172,
    "b": 33
  },
  "hsl": {
    "h": 68.633,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.70509,
    "c": 0.15452,
    "h": 118
  },
  "luminance": 0.3629
}

Semantic roles & 50–950 ramp

primary
#98AC21
secondary
#7062C7
accent
#3DEB56
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121207
muted
#81817A

Preview Lab

Preview with #98AC21

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

Preview Lab → · Contrast checker → · Palette generator →

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