#98A71C#98A71C

#98A71C 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#98A71C
RGBrgb(152, 167, 28)
HSLhsl(66, 71%, 38%)
HSVhsv(66, 83%, 65%)
CMYKcmyk(9%, 0%, 83.2%, 34.5%)
CIE-LABlab(65.28, -21.74, 62.71)
CIE-LCHlch(65.28, 66.37, 109.12°)
OKLaboklab(69.32% -0.0667 0.1356)
OKLCHoklch(69.32% 0.151 116.2)
XYZxyz(26.9780, 34.3971, 6.3165)
Luminance0.3440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A71C #2B1CA7
analogous
#A7701C #98A71C #52A71C
triadic
#98A71C #1C98A7 #A71C98
tetradic
#98A71C #1CA770 #2B1CA7 #A71C52
square
#98A71C #1CA770 #2B1CA7 #A71C52
split-complementary
#98A71C #1C52A7 #701CA7
monochromatic
#393E0A #687313 #98A71C #C7DB26 #D5E35A

Accessibility & contrast

On white

2.67
#98A71C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##98A71C#FFFFFF#000000##000000
##98A71C1.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #98a71c;
/* rgb */ color: rgb(152, 167, 28);
/* oklch */ color: oklch(69.3% 0.151 116.2);
Tailwind
colors: {
  custom: {
    50: '#bac167',
    500: '#98a71c',
    950: '#000000',
  },
}
SCSS
$custom: #98a71c;
$custom-light: #bac167;
$custom-dark: #000000;
JSON
{
  "hex": "#98a71c",
  "rgb": {
    "r": 152,
    "g": 167,
    "b": 28
  },
  "hsl": {
    "h": 66.475,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.69324,
    "c": 0.15113,
    "h": 116.2
  },
  "luminance": 0.34397
}

Semantic roles & 50–950 ramp

primary
#98A71C
secondary
#6458C7
accent
#3AEE4D
background
#FBFBF6
surface
#F7F7EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #98A71C

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

Preview Lab → · Contrast checker → · Palette generator →

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