#98A251#98A251

#98A251 is a light, moderate yellow. Relative luminance 0.331; OKLCH L 68.6% C 0.106 H 115.1°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#98A251
RGBrgb(152, 162, 81)
HSLhsl(67, 33%, 48%)
HSVhsv(67, 50%, 64%)
CMYKcmyk(6.2%, 0%, 50%, 36.5%)
CIE-LABlab(64.25, -15.79, 40.56)
CIE-LCHlch(64.25, 43.52, 111.27°)
OKLaboklab(68.63% -0.045 0.0963)
OKLCHoklch(68.63% 0.106 115.1)
XYZxyz(27.3548, 33.1105, 12.7329)
Luminance0.3311 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A251 #5B51A2
analogous
#A28351 #98A251 #70A251
triadic
#98A251 #5198A2 #A25198
tetradic
#98A251 #51A283 #5B51A2 #A25170
square
#98A251 #51A283 #5B51A2 #A25170
split-complementary
#98A251 #5170A2 #8351A2
monochromatic
#4B5028 #72793D #98A251 #B2BA76 #C9CF9F

Accessibility & contrast

On white

2.76
#98A251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.62
#98A251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A251
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A251#FFFFFF#000000##000000
##98A2511.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9B4A
Deuteranopia (green-blind)
#AB9D55
Tritanopia (blue-blind)
#A09A8F
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #98a251;
/* rgb */ color: rgb(152, 162, 81);
/* oklch */ color: oklch(68.6% 0.106 115.1);
Tailwind
colors: {
  custom: {
    50: '#b8bd84',
    500: '#98a251',
    950: '#000000',
  },
}
SCSS
$custom: #98a251;
$custom-light: #b8bd84;
$custom-dark: #000000;
JSON
{
  "hex": "#98a251",
  "rgb": {
    "r": 152,
    "g": 162,
    "b": 81
  },
  "hsl": {
    "h": 67.407,
    "s": 33.333,
    "l": 47.647
  },
  "oklch": {
    "l": 0.68632,
    "c": 0.10626,
    "h": 115.1
  },
  "luminance": 0.3311
}

Semantic roles & 50–950 ramp

primary
#98A251
secondary
#9893BC
accent
#5EC96C
background
#FBFBF8
surface
#F6F6EF
border
#D0D0CA
text
#11120B
muted
#80817C

Preview Lab

Preview with #98A251

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

Preview Lab → · Contrast checker → · Palette generator →

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