#98B31C#98B31C

#98B31C is a light, vivid yellow-green. Relative luminance 0.390; OKLCH L 72.1% C 0.164 H 120.2°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#98B31C
RGBrgb(152, 179, 28)
HSLhsl(71, 73%, 41%)
HSVhsv(71, 84%, 70%)
CMYKcmyk(15.1%, 0%, 84.4%, 29.8%)
CIE-LABlab(68.75, -27.62, 65.68)
CIE-LCHlch(68.75, 71.26, 112.81°)
OKLaboklab(72.12% -0.0828 0.1421)
OKLCHoklch(72.12% 0.164 120.2)
XYZxyz(29.2792, 38.9995, 7.0836)
Luminance0.3900 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98B31C #371CB3
analogous
#B3821C #98B31C #4DB31C
triadic
#98B31C #1C98B3 #B31C98
tetradic
#98B31C #1CB382 #371CB3 #B31C4D
square
#98B31C #1CB382 #371CB3 #B31C4D
split-complementary
#98B31C #1C4DB3 #821CB3
monochromatic
#3E490B #6B7E14 #98B31C #BFDE2E #CFE763

Accessibility & contrast

On white

2.39
#98B31C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#98B31C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98B31C
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98B31C#FFFFFF#000000##000000
##98B31C1.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#BCA82E
Tritanopia (blue-blind)
#A1A999
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #98b31c;
/* rgb */ color: rgb(152, 179, 28);
/* oklch */ color: oklch(72.1% 0.164 120.2);
Tailwind
colors: {
  custom: {
    50: '#bac969',
    500: '#98b31c',
    950: '#000000',
  },
}
SCSS
$custom: #98b31c;
$custom-light: #bac969;
$custom-dark: #000000;
JSON
{
  "hex": "#98b31c",
  "rgb": {
    "r": 152,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 70.728,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.72122,
    "c": 0.16441,
    "h": 120.2
  },
  "luminance": 0.38999
}

Semantic roles & 50–950 ramp

primary
#98B31C
secondary
#735FCB
accent
#38F059
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #98B31C

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

Preview Lab → · Contrast checker → · Palette generator →

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