#98AC2F#98AC2F

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

Color values

HEX#98AC2F
RGBrgb(152, 172, 47)
HSLhsl(70, 57%, 43%)
HSVhsv(70, 73%, 67%)
CMYKcmyk(11.6%, 0%, 72.7%, 32.5%)
CIE-LABlab(66.81, -23.41, 58.24)
CIE-LCHlch(66.81, 62.77, 111.90°)
OKLaboklab(70.59% -0.0698 0.1294)
OKLCHoklch(70.59% 0.147 118.3)
XYZxyz(28.2151, 36.3859, 8.2256)
Luminance0.3639 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AC2F #432FAC
analogous
#AC812F #98AC2F #59AC2F
triadic
#98AC2F #2F98AC #AC2F98
tetradic
#98AC2F #2FAC81 #432FAC #AC2F59
square
#98AC2F #2FAC81 #432FAC #AC2F59
split-complementary
#98AC2F #2F59AC #812FAC
monochromatic
#434C15 #6E7C22 #98AC2F #B9CE4B #CBDB7B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##98AC2F#FFFFFF#000000##000000
##98AC2F1.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)
#B7A217
Deuteranopia (green-blind)
#B5A339
Tritanopia (blue-blind)
#A1A294
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #98ac2f;
/* rgb */ color: rgb(152, 172, 47);
/* oklch */ color: oklch(70.6% 0.147 118.3);
Tailwind
colors: {
  custom: {
    50: '#bac470',
    500: '#98ac2f',
    950: '#000000',
  },
}
SCSS
$custom: #98ac2f;
$custom-light: #bac470;
$custom-dark: #000000;
JSON
{
  "hex": "#98ac2f",
  "rgb": {
    "r": 152,
    "g": 172,
    "b": 47
  },
  "hsl": {
    "h": 69.6,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.7059,
    "c": 0.14706,
    "h": 118.3
  },
  "luminance": 0.36386
}

Semantic roles & 50–950 ramp

primary
#98AC2F
secondary
#8074C3
accent
#47E060
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121208
muted
#81817B

Preview Lab

Preview with #98AC2F

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

Preview Lab → · Contrast checker → · Palette generator →

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