#98A71D#98A71D

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

Color values

HEX#98A71D
RGBrgb(152, 167, 29)
HSLhsl(67, 70%, 38%)
HSVhsv(67, 83%, 65%)
CMYKcmyk(9%, 0%, 82.6%, 34.5%)
CIE-LABlab(65.28, -21.70, 62.45)
CIE-LCHlch(65.28, 66.12, 109.16°)
OKLaboklab(69.33% -0.0665 0.1353)
OKLCHoklch(69.33% 0.151 116.2)
XYZxyz(26.9902, 34.4020, 6.3806)
Luminance0.3440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A71D #2C1DA7
analogous
#A7711D #98A71D #53A71D
triadic
#98A71D #1D98A7 #A71D98
tetradic
#98A71D #1DA771 #2C1DA7 #A71D53
square
#98A71D #1DA771 #2C1DA7 #A71D53
split-complementary
#98A71D #1D53A7 #711DA7
monochromatic
#393F0B #697314 #98A71D #C6DA28 #D4E35C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##98A71D#FFFFFF#000000##000000
##98A71D1.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)
#B29F2C
Tritanopia (blue-blind)
#A29D8E
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #98a71d;
/* rgb */ color: rgb(152, 167, 29);
/* oklch */ color: oklch(69.3% 0.151 116.2);
Tailwind
colors: {
  custom: {
    50: '#bac168',
    500: '#98a71d',
    950: '#000000',
  },
}
SCSS
$custom: #98a71d;
$custom-light: #bac168;
$custom-dark: #000000;
JSON
{
  "hex": "#98a71d",
  "rgb": {
    "r": 152,
    "g": 167,
    "b": 29
  },
  "hsl": {
    "h": 66.522,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.69328,
    "c": 0.15073,
    "h": 116.2
  },
  "luminance": 0.34402
}

Semantic roles & 50–950 ramp

primary
#98A71D
secondary
#6559C7
accent
#3BED4E
background
#FBFBF6
surface
#F7F7EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #98A71D

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

Preview Lab → · Contrast checker → · Palette generator →

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