#98A51F#98A51F

#98A51F is a light, vivid yellow. Relative luminance 0.337; OKLCH L 68.9% C 0.148 H 115.4°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#98A51F
RGBrgb(152, 165, 31)
HSLhsl(66, 68%, 38%)
HSVhsv(66, 81%, 65%)
CMYKcmyk(7.9%, 0%, 81.2%, 35.3%)
CIE-LABlab(64.71, -20.63, 61.42)
CIE-LCHlch(64.71, 64.79, 108.57°)
OKLaboklab(68.87% -0.0634 0.1334)
OKLCHoklch(68.87% 0.148 115.4)
XYZxyz(26.6521, 33.6851, 6.3939)
Luminance0.3368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A51F #2C1FA5
analogous
#A56F1F #98A51F #55A51F
triadic
#98A51F #1F98A5 #A51F98
tetradic
#98A51F #1FA56F #2C1FA5 #A51F55
square
#98A51F #1FA56F #2C1FA5 #A51F55
split-complementary
#98A51F #1F55A5 #6F1FA5
monochromatic
#393E0C #697115 #98A51F #C6D72A #D4E15E

Accessibility & contrast

On white

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

On black

7.74
#98A51F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A51F
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A51F#FFFFFF#000000##000000
##98A51F1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B09E2D
Tritanopia (blue-blind)
#A29B8D
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #98a51f;
/* rgb */ color: rgb(152, 165, 31);
/* oklch */ color: oklch(68.9% 0.148 115.4);
Tailwind
colors: {
  custom: {
    50: '#babf68',
    500: '#98a51f',
    950: '#000000',
  },
}
SCSS
$custom: #98a51f;
$custom-light: #babf68;
$custom-dark: #000000;
JSON
{
  "hex": "#98a51f",
  "rgb": {
    "r": 152,
    "g": 165,
    "b": 31
  },
  "hsl": {
    "h": 65.821,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.68874,
    "c": 0.1477,
    "h": 115.4
  },
  "luminance": 0.33685
}

Semantic roles & 50–950 ramp

primary
#98A51F
secondary
#655BC5
accent
#3DEB4E
background
#FBFBF6
surface
#F7F7EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #98A51F

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

Preview Lab → · Contrast checker → · Palette generator →

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