#98A321#98A321

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

Color values

HEX#98A321
RGBrgb(152, 163, 33)
HSLhsl(65, 66%, 38%)
HSVhsv(65, 80%, 64%)
CMYKcmyk(6.7%, 0%, 79.8%, 36.1%)
CIE-LABlab(64.14, -19.54, 60.35)
CIE-LCHlch(64.14, 63.43, 107.95°)
OKLaboklab(68.42% -0.0603 0.1315)
OKLCHoklch(68.42% 0.145 114.6)
XYZxyz(26.3214, 32.9801, 6.4178)
Luminance0.3298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A321 #2C21A3
analogous
#A36D21 #98A321 #57A321
triadic
#98A321 #2198A3 #A32198
tetradic
#98A321 #21A36D #2C21A3 #A32157
square
#98A321 #21A36D #2C21A3 #A32157
split-complementary
#98A321 #2157A3 #6D21A3
monochromatic
#393D0C #697017 #98A321 #C6D42D #D4DF60

Accessibility & contrast

On white

2.76
#98A321 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#98A321 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A321
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A321#FFFFFF#000000##000000
##98A3211.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #98a321;
/* rgb */ color: rgb(152, 163, 33);
/* oklch */ color: oklch(68.4% 0.145 114.6);
Tailwind
colors: {
  custom: {
    50: '#babe69',
    500: '#98a321',
    950: '#000000',
  },
}
SCSS
$custom: #98a321;
$custom-light: #babe69;
$custom-dark: #000000;
JSON
{
  "hex": "#98a321",
  "rgb": {
    "r": 152,
    "g": 163,
    "b": 33
  },
  "hsl": {
    "h": 65.077,
    "s": 66.327,
    "l": 38.431
  },
  "oklch": {
    "l": 0.68422,
    "c": 0.14461,
    "h": 114.6
  },
  "luminance": 0.3298
}

Semantic roles & 50–950 ramp

primary
#98A321
secondary
#655CC3
accent
#3FE94D
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #98A321

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

Preview Lab → · Contrast checker → · Palette generator →

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