#98A71F#98A71F

#98A71F is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.3% C 0.150 H 116.2°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#98A71F
RGBrgb(152, 167, 31)
HSLhsl(67, 69%, 39%)
HSVhsv(67, 81%, 65%)
CMYKcmyk(9%, 0%, 81.4%, 34.5%)
CIE-LABlab(65.29, -21.63, 61.93)
CIE-LCHlch(65.29, 65.60, 109.26°)
OKLaboklab(69.34% -0.0662 0.1345)
OKLCHoklch(69.34% 0.15 116.2)
XYZxyz(27.0157, 34.4122, 6.5151)
Luminance0.3441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A71F #2E1FA7
analogous
#A7721F #98A71F #54A71F
triadic
#98A71F #1F98A7 #A71F98
tetradic
#98A71F #1FA772 #2E1FA7 #A71F54
square
#98A71F #1FA772 #2E1FA7 #A71F54
split-complementary
#98A71F #1F54A7 #721FA7
monochromatic
#3A400C #697315 #98A71F #C5D82B #D3E15F

Accessibility & contrast

On white

2.66
#98A71F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#98A71F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A71F
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A71F#FFFFFF#000000##000000
##98A71F1.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E00
Deuteranopia (green-blind)
#B29F2D
Tritanopia (blue-blind)
#A29D8F
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #98a71f;
/* rgb */ color: rgb(152, 167, 31);
/* oklch */ color: oklch(69.3% 0.150 116.2);
Tailwind
colors: {
  custom: {
    50: '#bac169',
    500: '#98a71f',
    950: '#000000',
  },
}
SCSS
$custom: #98a71f;
$custom-light: #bac169;
$custom-dark: #000000;
JSON
{
  "hex": "#98a71f",
  "rgb": {
    "r": 152,
    "g": 167,
    "b": 31
  },
  "hsl": {
    "h": 66.618,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.69337,
    "c": 0.14987,
    "h": 116.2
  },
  "luminance": 0.34412
}

Semantic roles & 50–950 ramp

primary
#98A71F
secondary
#685CC6
accent
#3CEC50
background
#FBFBF6
surface
#F7F7EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #98A71F

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

Preview Lab → · Contrast checker → · Palette generator →

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