#98A521#98A521

#98A521 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#98A521
RGBrgb(152, 165, 33)
HSLhsl(66, 67%, 39%)
HSVhsv(66, 80%, 65%)
CMYKcmyk(7.9%, 0%, 80%, 35.3%)
CIE-LABlab(64.72, -20.56, 60.86)
CIE-LCHlch(64.72, 64.24, 108.66°)
OKLaboklab(68.88% -0.0631 0.1325)
OKLCHoklch(68.88% 0.147 115.4)
XYZxyz(26.6793, 33.6959, 6.5371)
Luminance0.3370 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A521 #2E21A5
analogous
#A57021 #98A521 #56A521
triadic
#98A521 #2198A5 #A52198
tetradic
#98A521 #21A570 #2E21A5 #A52156
square
#98A521 #21A570 #2E21A5 #A52156
split-complementary
#98A521 #2156A5 #7021A5
monochromatic
#3A3F0D #697217 #98A521 #C5D52E #D3DF61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##98A521#FFFFFF#000000##000000
##98A5211.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)
#B09E2E
Tritanopia (blue-blind)
#A29B8D
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #98a521;
/* rgb */ color: rgb(152, 165, 33);
/* oklch */ color: oklch(68.9% 0.147 115.4);
Tailwind
colors: {
  custom: {
    50: '#babf69',
    500: '#98a521',
    950: '#000000',
  },
}
SCSS
$custom: #98a521;
$custom-light: #babf69;
$custom-dark: #000000;
JSON
{
  "hex": "#98a521",
  "rgb": {
    "r": 152,
    "g": 165,
    "b": 33
  },
  "hsl": {
    "h": 65.909,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.68884,
    "c": 0.14678,
    "h": 115.4
  },
  "luminance": 0.33695
}

Semantic roles & 50–950 ramp

primary
#98A521
secondary
#685EC4
accent
#3EEA4F
background
#FBFBF6
surface
#F7F7EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #98A521

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

Preview Lab → · Contrast checker → · Palette generator →

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