#98A520#98A520

#98A520 is a light, vivid yellow. Relative luminance 0.337; OKLCH L 68.9% C 0.147 H 115.4°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#98A520
RGBrgb(152, 165, 32)
HSLhsl(66, 68%, 39%)
HSVhsv(66, 81%, 65%)
CMYKcmyk(7.9%, 0%, 80.6%, 35.3%)
CIE-LABlab(64.72, -20.59, 61.14)
CIE-LCHlch(64.72, 64.52, 108.61°)
OKLaboklab(68.88% -0.0632 0.133)
OKLCHoklch(68.88% 0.147 115.4)
XYZxyz(26.6655, 33.6904, 6.4644)
Luminance0.3369 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A520 #2D20A5
analogous
#A56F20 #98A520 #55A520
triadic
#98A520 #2098A5 #A52098
tetradic
#98A520 #20A56F #2D20A5 #A52055
square
#98A520 #20A56F #2D20A5 #A52055
split-complementary
#98A520 #2055A5 #6F20A5
monochromatic
#3A3E0C #697216 #98A520 #C5D62C #D3E05F

Accessibility & contrast

On white

2.71
#98A520 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#98A520 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A520
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A520#FFFFFF#000000##000000
##98A5201.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B09E2D
Tritanopia (blue-blind)
#A29B8D
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #98a520;
/* rgb */ color: rgb(152, 165, 32);
/* oklch */ color: oklch(68.9% 0.147 115.4);
Tailwind
colors: {
  custom: {
    50: '#babf69',
    500: '#98a520',
    950: '#000000',
  },
}
SCSS
$custom: #98a520;
$custom-light: #babf69;
$custom-dark: #000000;
JSON
{
  "hex": "#98a520",
  "rgb": {
    "r": 152,
    "g": 165,
    "b": 32
  },
  "hsl": {
    "h": 65.865,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.68879,
    "c": 0.14724,
    "h": 115.4
  },
  "luminance": 0.3369
}

Semantic roles & 50–950 ramp

primary
#98A520
secondary
#665CC5
accent
#3DEA4E
background
#FBFBF6
surface
#F7F7EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #98A520

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

Preview Lab → · Contrast checker → · Palette generator →

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