#98A021#98A021

#98A021 is a light, vivid yellow. Relative luminance 0.319; OKLCH L 67.7% C 0.141 H 113.4°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#98A021
RGBrgb(152, 160, 33)
HSLhsl(64, 66%, 38%)
HSVhsv(64, 79%, 63%)
CMYKcmyk(5%, 0%, 79.4%, 37.3%)
CIE-LABlab(63.28, -18.02, 59.58)
CIE-LCHlch(63.28, 62.24, 106.83°)
OKLaboklab(67.73% -0.056 0.1298)
OKLCHoklch(67.73% 0.141 113.4)
XYZxyz(25.7950, 31.9274, 6.2423)
Luminance0.3193 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A021 #2921A0
analogous
#A06921 #98A021 #58A021
triadic
#98A021 #2198A0 #A02198
tetradic
#98A021 #21A069 #2921A0 #A02158
square
#98A021 #21A069 #2921A0 #A02158
split-complementary
#98A021 #2158A0 #6921A0
monochromatic
#383B0C #686D17 #98A021 #C8D32B #D6DE5E

Accessibility & contrast

On white

2.84
#98A021 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#98A021 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A021
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A021#FFFFFF#000000##000000
##98A0211.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9800
Deuteranopia (green-blind)
#AC9A2D
Tritanopia (blue-blind)
#A39689
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #98a021;
/* rgb */ color: rgb(152, 160, 33);
/* oklch */ color: oklch(67.7% 0.141 113.4);
Tailwind
colors: {
  custom: {
    50: '#babb68',
    500: '#98a021',
    950: '#000000',
  },
}
SCSS
$custom: #98a021;
$custom-light: #babb68;
$custom-dark: #000000;
JSON
{
  "hex": "#98a021",
  "rgb": {
    "r": 152,
    "g": 160,
    "b": 33
  },
  "hsl": {
    "h": 63.78,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.67731,
    "c": 0.14138,
    "h": 113.4
  },
  "luminance": 0.31927
}

Semantic roles & 50–950 ramp

primary
#98A021
secondary
#615BC2
accent
#3FE94A
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #98A021

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

Preview Lab → · Contrast checker → · Palette generator →

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