#98A31A#98A31A

#98A31A is a light, vivid yellow. Relative luminance 0.329; OKLCH L 68.4% C 0.148 H 114.6°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#98A31A
RGBrgb(152, 163, 26)
HSLhsl(65, 72%, 37%)
HSVhsv(65, 84%, 64%)
CMYKcmyk(6.7%, 0%, 84%, 36.1%)
CIE-LABlab(64.12, -19.79, 62.22)
CIE-LCHlch(64.12, 65.29, 107.64°)
OKLaboklab(68.39% -0.0614 0.1342)
OKLCHoklch(68.39% 0.148 114.6)
XYZxyz(26.2334, 32.9449, 5.9541)
Luminance0.3294 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A31A #251AA3
analogous
#A36A1A #98A31A #53A31A
triadic
#98A31A #1A98A3 #A31A98
tetradic
#98A31A #1AA36A #251AA3 #A31A53
square
#98A31A #1AA36A #251AA3 #A31A53
split-complementary
#98A31A #1A53A3 #6A1AA3
monochromatic
#363909 #676E12 #98A31A #C9D822 #D8E454

Accessibility & contrast

On white

2.77
#98A31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#98A31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A31A
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A31A#FFFFFF#000000##000000
##98A31A1.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9A00
Deuteranopia (green-blind)
#AF9C29
Tritanopia (blue-blind)
#A3998B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #98a31a;
/* rgb */ color: rgb(152, 163, 26);
/* oklch */ color: oklch(68.4% 0.148 114.6);
Tailwind
colors: {
  custom: {
    50: '#babe66',
    500: '#98a31a',
    950: '#000000',
  },
}
SCSS
$custom: #98a31a;
$custom-light: #babe66;
$custom-dark: #000000;
JSON
{
  "hex": "#98a31a",
  "rgb": {
    "r": 152,
    "g": 163,
    "b": 26
  },
  "hsl": {
    "h": 64.818,
    "s": 72.487,
    "l": 37.059
  },
  "oklch": {
    "l": 0.6839,
    "c": 0.14763,
    "h": 114.6
  },
  "luminance": 0.32944
}

Semantic roles & 50–950 ramp

primary
#98A31A
secondary
#5C52C7
accent
#39EF47
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #98A31A

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

Preview Lab → · Contrast checker → · Palette generator →

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