#98AC1F#98AC1F

#98AC1F is a light, vivid yellow. Relative luminance 0.363; OKLCH L 70.5% C 0.155 H 118.0°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#98AC1F
RGBrgb(152, 172, 31)
HSLhsl(69, 69%, 40%)
HSVhsv(69, 82%, 67%)
CMYKcmyk(11.6%, 0%, 82%, 32.5%)
CIE-LABlab(66.73, -24.12, 63.19)
CIE-LCHlch(66.73, 67.64, 110.89°)
OKLaboklab(70.5% -0.073 0.1372)
OKLCHoklch(70.5% 0.155 118)
XYZxyz(27.9494, 36.2797, 6.8264)
Luminance0.3628 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AC1F #331FAC
analogous
#AC7A1F #98AC1F #51AC1F
triadic
#98AC1F #1F98AC #AC1F98
tetradic
#98AC1F #1FAC7A #331FAC #AC1F51
square
#98AC1F #1FAC7A #331FAC #AC1F51
split-complementary
#98AC1F #1F51AC #7A1FAC
monochromatic
#3C440C #6A7816 #98AC1F #C1D92F #D1E363

Accessibility & contrast

On white

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

On black

8.26
#98AC1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98AC1F
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98AC1F#FFFFFF#000000##000000
##98AC1F1.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#B6A32E
Tritanopia (blue-blind)
#A2A293
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #98ac1f;
/* rgb */ color: rgb(152, 172, 31);
/* oklch */ color: oklch(70.5% 0.155 118.0);
Tailwind
colors: {
  custom: {
    50: '#bac469',
    500: '#98ac1f',
    950: '#000000',
  },
}
SCSS
$custom: #98ac1f;
$custom-light: #bac469;
$custom-dark: #000000;
JSON
{
  "hex": "#98ac1f",
  "rgb": {
    "r": 152,
    "g": 172,
    "b": 31
  },
  "hsl": {
    "h": 68.511,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.70499,
    "c": 0.15539,
    "h": 118
  },
  "luminance": 0.36279
}

Semantic roles & 50–950 ramp

primary
#98AC1F
secondary
#6E5FC8
accent
#3CEC55
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121207
muted
#81817A

Preview Lab

Preview with #98AC1F

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

Preview Lab → · Contrast checker → · Palette generator →

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