#98A52F#98A52F

#98A52F is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.0% C 0.139 H 115.6°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#98A52F
RGBrgb(152, 165, 47)
HSLhsl(67, 56%, 42%)
HSVhsv(67, 72%, 65%)
CMYKcmyk(7.9%, 0%, 71.5%, 35.3%)
CIE-LABlab(64.80, -19.91, 56.27)
CIE-LCHlch(64.80, 59.68, 109.49°)
OKLaboklab(68.97% -0.0601 0.1253)
OKLCHoklch(68.97% 0.139 115.6)
XYZxyz(26.9178, 33.7913, 7.7931)
Luminance0.3379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A52F #3C2FA5
analogous
#A5772F #98A52F #5DA52F
triadic
#98A52F #2F98A5 #A52F98
tetradic
#98A52F #2FA577 #3C2FA5 #A52F5D
square
#98A52F #2FA577 #3C2FA5 #A52F5D
split-complementary
#98A52F #2F5DA5 #772FA5
monochromatic
#404614 #6C7521 #98A52F #BCCB47 #CDD876

Accessibility & contrast

On white

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

On black

7.76
#98A52F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A52F
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A52F#FFFFFF#000000##000000
##98A52F1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C1A
Deuteranopia (green-blind)
#B09E38
Tritanopia (blue-blind)
#A29B8E
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #98a52f;
/* rgb */ color: rgb(152, 165, 47);
/* oklch */ color: oklch(69.0% 0.139 115.6);
Tailwind
colors: {
  custom: {
    50: '#b9bf70',
    500: '#98a52f',
    950: '#000000',
  },
}
SCSS
$custom: #98a52f;
$custom-light: #b9bf70;
$custom-dark: #000000;
JSON
{
  "hex": "#98a52f",
  "rgb": {
    "r": 152,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 66.61,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.68969,
    "c": 0.13896,
    "h": 115.6
  },
  "luminance": 0.33791
}

Semantic roles & 50–950 ramp

primary
#98A52F
secondary
#7970C0
accent
#49DF59
background
#FBFBF7
surface
#F7F7ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #98A52F

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

Preview Lab → · Contrast checker → · Palette generator →

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