#98A42F#98A42F

#98A42F is a light, vivid yellow. Relative luminance 0.334; OKLCH L 68.7% C 0.138 H 115.2°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#98A42F
RGBrgb(152, 164, 47)
HSLhsl(66, 55%, 41%)
HSVhsv(66, 71%, 64%)
CMYKcmyk(7.3%, 0%, 71.3%, 35.7%)
CIE-LABlab(64.51, -19.40, 55.98)
CIE-LCHlch(64.51, 59.25, 109.12°)
OKLaboklab(68.74% -0.0587 0.1247)
OKLCHoklch(68.74% 0.138 115.2)
XYZxyz(26.7381, 33.4320, 7.7333)
Luminance0.3343 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A42F #3B2FA4
analogous
#A4762F #98A42F #5EA42F
triadic
#98A42F #2F98A4 #A42F98
tetradic
#98A42F #2FA476 #3B2FA4 #A42F5E
square
#98A42F #2FA476 #3B2FA4 #A42F5E
split-complementary
#98A42F #2F5EA4 #762FA4
monochromatic
#404514 #6C7421 #98A42F #BDCA46 #CED876

Accessibility & contrast

On white

2.73
#98A42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#98A42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A42F
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A42F#FFFFFF#000000##000000
##98A42F1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1B
Deuteranopia (green-blind)
#AF9D38
Tritanopia (blue-blind)
#A29A8D
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #98a42f;
/* rgb */ color: rgb(152, 164, 47);
/* oklch */ color: oklch(68.7% 0.138 115.2);
Tailwind
colors: {
  custom: {
    50: '#b9be6f',
    500: '#98a42f',
    950: '#000000',
  },
}
SCSS
$custom: #98a42f;
$custom-light: #b9be6f;
$custom-dark: #000000;
JSON
{
  "hex": "#98a42f",
  "rgb": {
    "r": 152,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 66.154,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.68739,
    "c": 0.13781,
    "h": 115.2
  },
  "luminance": 0.33432
}

Semantic roles & 50–950 ramp

primary
#98A42F
secondary
#776FC0
accent
#49DF58
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #98A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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