#98A22C#98A22C

#98A22C is a light, vivid yellow. Relative luminance 0.327; OKLCH L 68.3% C 0.137 H 114.3°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#98A22C
RGBrgb(152, 162, 44)
HSLhsl(65, 57%, 40%)
HSVhsv(65, 73%, 64%)
CMYKcmyk(6.2%, 0%, 72.8%, 36.5%)
CIE-LABlab(63.92, -18.55, 56.51)
CIE-LCHlch(63.92, 59.48, 108.17°)
OKLaboklab(68.26% -0.0566 0.1253)
OKLCHoklch(68.26% 0.137 114.3)
XYZxyz(26.3246, 32.6984, 7.3071)
Luminance0.3270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A22C #362CA2
analogous
#A2712C #98A22C #5DA22C
triadic
#98A22C #2C98A2 #A22C98
tetradic
#98A22C #2CA271 #362CA2 #A22C5D
square
#98A22C #2CA271 #362CA2 #A22C5D
split-complementary
#98A22C #2C5DA2 #712CA2
monochromatic
#3E4212 #6B721F #98A22C #BFCB40 #CFD870

Accessibility & contrast

On white

2.79
#98A22C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#98A22C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A22C
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A22C#FFFFFF#000000##000000
##98A22C1.002.797.547.54
#FFFFFF2.791.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A16
Deuteranopia (green-blind)
#AD9C35
Tritanopia (blue-blind)
#A2988B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #98a22c;
/* rgb */ color: rgb(152, 162, 44);
/* oklch */ color: oklch(68.3% 0.137 114.3);
Tailwind
colors: {
  custom: {
    50: '#babd6e',
    500: '#98a22c',
    950: '#000000',
  },
}
SCSS
$custom: #98a22c;
$custom-light: #babd6e;
$custom-dark: #000000;
JSON
{
  "hex": "#98a22c",
  "rgb": {
    "r": 152,
    "g": 162,
    "b": 44
  },
  "hsl": {
    "h": 65.085,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.68257,
    "c": 0.13747,
    "h": 114.3
  },
  "luminance": 0.32698
}

Semantic roles & 50–950 ramp

primary
#98A22C
secondary
#726ABF
accent
#47E154
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121208
muted
#81817B

Preview Lab

Preview with #98A22C

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

Preview Lab → · Contrast checker → · Palette generator →

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