#98AA21#98AA21

#98AA21 is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.0% C 0.152 H 117.3°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#98AA21
RGBrgb(152, 170, 33)
HSLhsl(68, 67%, 40%)
HSVhsv(68, 81%, 67%)
CMYKcmyk(10.6%, 0%, 80.6%, 33.3%)
CIE-LABlab(66.16, -23.06, 62.14)
CIE-LCHlch(66.16, 66.28, 110.36°)
OKLaboklab(70.04% -0.0699 0.1353)
OKLCHoklch(70.04% 0.152 117.3)
XYZxyz(27.5988, 35.5350, 6.8436)
Luminance0.3553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AA21 #3321AA
analogous
#AA7721 #98AA21 #54AA21
triadic
#98AA21 #2198AA #AA2198
tetradic
#98AA21 #21AA77 #3321AA #AA2154
square
#98AA21 #21AA77 #3321AA #AA2154
split-complementary
#98AA21 #2154AA #7721AA
monochromatic
#3C430D #6A7717 #98AA21 #C1D731 #D1E164

Accessibility & contrast

On white

2.59
#98AA21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#98AA21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98AA21
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98AA21#FFFFFF#000000##000000
##98AA211.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A000
Deuteranopia (green-blind)
#B4A22F
Tritanopia (blue-blind)
#A2A091
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #98aa21;
/* rgb */ color: rgb(152, 170, 33);
/* oklch */ color: oklch(70.0% 0.152 117.3);
Tailwind
colors: {
  custom: {
    50: '#bac36a',
    500: '#98aa21',
    950: '#000000',
  },
}
SCSS
$custom: #98aa21;
$custom-light: #bac36a;
$custom-dark: #000000;
JSON
{
  "hex": "#98aa21",
  "rgb": {
    "r": 152,
    "g": 170,
    "b": 33
  },
  "hsl": {
    "h": 67.883,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.70043,
    "c": 0.15229,
    "h": 117.3
  },
  "luminance": 0.35535
}

Semantic roles & 50–950 ramp

primary
#98AA21
secondary
#6E61C6
accent
#3DEA54
background
#FBFBF6
surface
#F7F7EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #98AA21

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

Preview Lab → · Contrast checker → · Palette generator →

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