#98A522#98A522

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

Color values

HEX#98A522
RGBrgb(152, 165, 34)
HSLhsl(66, 66%, 39%)
HSVhsv(66, 79%, 65%)
CMYKcmyk(7.9%, 0%, 79.4%, 35.3%)
CIE-LABlab(64.72, -20.52, 60.57)
CIE-LCHlch(64.72, 63.95, 108.71°)
OKLaboklab(68.89% -0.0629 0.1321)
OKLCHoklch(68.89% 0.146 115.5)
XYZxyz(26.6935, 33.7016, 6.6119)
Luminance0.3370 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A522 #2F22A5
analogous
#A57122 #98A522 #57A522
triadic
#98A522 #2298A5 #A52298
tetradic
#98A522 #22A571 #2F22A5 #A52257
square
#98A522 #22A571 #2F22A5 #A52257
split-complementary
#98A522 #2257A5 #7122A5
monochromatic
#3B400D #697218 #98A522 #C4D430 #D2DF63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #98a522;
/* rgb */ color: rgb(152, 165, 34);
/* oklch */ color: oklch(68.9% 0.146 115.5);
Tailwind
colors: {
  custom: {
    50: '#babf69',
    500: '#98a522',
    950: '#000000',
  },
}
SCSS
$custom: #98a522;
$custom-light: #babf69;
$custom-dark: #000000;
JSON
{
  "hex": "#98a522",
  "rgb": {
    "r": 152,
    "g": 165,
    "b": 34
  },
  "hsl": {
    "h": 65.954,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.68889,
    "c": 0.1463,
    "h": 115.5
  },
  "luminance": 0.33701
}

Semantic roles & 50–950 ramp

primary
#98A522
secondary
#695FC4
accent
#3FE950
background
#FBFBF6
surface
#F7F7EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #98A522

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

Preview Lab → · Contrast checker → · Palette generator →

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