#98A41F#98A41F

#98A41F is a light, vivid yellow. Relative luminance 0.333; OKLCH L 68.6% C 0.147 H 115.0°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#98A41F
RGBrgb(152, 164, 31)
HSLhsl(65, 68%, 38%)
HSVhsv(65, 81%, 64%)
CMYKcmyk(7.3%, 0%, 81.1%, 35.7%)
CIE-LABlab(64.42, -20.12, 61.17)
CIE-LCHlch(64.42, 64.39, 108.21°)
OKLaboklab(68.64% -0.062 0.1329)
OKLCHoklch(68.64% 0.147 115)
XYZxyz(26.4725, 33.3257, 6.3340)
Luminance0.3332 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A41F #2B1FA4
analogous
#A46E1F #98A41F #55A41F
triadic
#98A41F #1F98A4 #A41F98
tetradic
#98A41F #1FA46E #2B1FA4 #A41F55
square
#98A41F #1FA46E #2B1FA4 #A41F55
split-complementary
#98A41F #1F55A4 #6E1FA4
monochromatic
#393D0C #687115 #98A41F #C7D72A #D5E05D

Accessibility & contrast

On white

2.74
#98A41F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.66
#98A41F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A41F
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A41F#FFFFFF#000000##000000
##98A41F1.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B00
Deuteranopia (green-blind)
#B09D2C
Tritanopia (blue-blind)
#A29A8C
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #98a41f;
/* rgb */ color: rgb(152, 164, 31);
/* oklch */ color: oklch(68.6% 0.147 115.0);
Tailwind
colors: {
  custom: {
    50: '#babe68',
    500: '#98a41f',
    950: '#000000',
  },
}
SCSS
$custom: #98a41f;
$custom-light: #babe68;
$custom-dark: #000000;
JSON
{
  "hex": "#98a41f",
  "rgb": {
    "r": 152,
    "g": 164,
    "b": 31
  },
  "hsl": {
    "h": 65.414,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.68643,
    "c": 0.14662,
    "h": 115
  },
  "luminance": 0.33325
}

Semantic roles & 50–950 ramp

primary
#98A41F
secondary
#645AC5
accent
#3DEB4C
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #98A41F

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

Preview Lab → · Contrast checker → · Palette generator →

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