#98AC31#98AC31

#98AC31 is a light, vivid yellow. Relative luminance 0.364; OKLCH L 70.6% C 0.146 H 118.4°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#98AC31
RGBrgb(152, 172, 49)
HSLhsl(70, 56%, 43%)
HSVhsv(70, 72%, 67%)
CMYKcmyk(11.6%, 0%, 71.5%, 32.5%)
CIE-LABlab(66.83, -23.30, 57.52)
CIE-LCHlch(66.83, 62.06, 112.06°)
OKLaboklab(70.6% -0.0693 0.1283)
OKLCHoklch(70.6% 0.146 118.4)
XYZxyz(28.2564, 36.4024, 8.4430)
Luminance0.3640 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AC31 #4531AC
analogous
#AC8231 #98AC31 #5AAC31
triadic
#98AC31 #3198AC #AC3198
tetradic
#98AC31 #31AC82 #4531AC #AC315A
square
#98AC31 #31AC82 #4531AC #AC315A
split-complementary
#98AC31 #315AAC #8231AC
monochromatic
#444D16 #6E7C23 #98AC31 #B8CC4E #CBDA7D

Accessibility & contrast

On white

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

On black

8.28
#98AC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98AC31
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98AC31#FFFFFF#000000##000000
##98AC311.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A21B
Deuteranopia (green-blind)
#B5A33B
Tritanopia (blue-blind)
#A1A394
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #98ac31;
/* rgb */ color: rgb(152, 172, 49);
/* oklch */ color: oklch(70.6% 0.146 118.4);
Tailwind
colors: {
  custom: {
    50: '#b9c471',
    500: '#98ac31',
    950: '#000000',
  },
}
SCSS
$custom: #98ac31;
$custom-light: #b9c471;
$custom-dark: #000000;
JSON
{
  "hex": "#98ac31",
  "rgb": {
    "r": 152,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 69.756,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.70604,
    "c": 0.1458,
    "h": 118.4
  },
  "luminance": 0.36402
}

Semantic roles & 50–950 ramp

primary
#98AC31
secondary
#8276C3
accent
#49DF61
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121208
muted
#81817B

Preview Lab

Preview with #98AC31

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

Preview Lab → · Contrast checker → · Palette generator →

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