#98A01F#98A01F

#98A01F is a light, vivid yellow. Relative luminance 0.319; OKLCH L 67.7% C 0.142 H 113.3°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#98A01F
RGBrgb(152, 160, 31)
HSLhsl(64, 68%, 37%)
HSVhsv(64, 81%, 63%)
CMYKcmyk(5%, 0%, 80.6%, 37.3%)
CIE-LABlab(63.27, -18.09, 60.15)
CIE-LCHlch(63.27, 62.82, 106.74°)
OKLaboklab(67.72% -0.0564 0.1307)
OKLCHoklch(67.72% 0.142 113.3)
XYZxyz(25.7679, 31.9165, 6.0992)
Luminance0.3192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A01F #271FA0
analogous
#A0681F #98A01F #57A01F
triadic
#98A01F #1F98A0 #A01F98
tetradic
#98A01F #1FA068 #271FA0 #A01F57
square
#98A01F #1FA068 #271FA0 #A01F57
split-complementary
#98A01F #1F57A0 #681FA0
monochromatic
#37390B #676D15 #98A01F #C9D329 #D7DF5A

Accessibility & contrast

On white

2.84
#98A01F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#98A01F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A01F
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A01F#FFFFFF#000000##000000
##98A01F1.002.847.387.38
#FFFFFF2.841.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9800
Deuteranopia (green-blind)
#AC9A2B
Tritanopia (blue-blind)
#A39689
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #98a01f;
/* rgb */ color: rgb(152, 160, 31);
/* oklch */ color: oklch(67.7% 0.142 113.3);
Tailwind
colors: {
  custom: {
    50: '#babb68',
    500: '#98a01f',
    950: '#000000',
  },
}
SCSS
$custom: #98a01f;
$custom-light: #babb68;
$custom-dark: #000000;
JSON
{
  "hex": "#98a01f",
  "rgb": {
    "r": 152,
    "g": 160,
    "b": 31
  },
  "hsl": {
    "h": 63.721,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.6772,
    "c": 0.14233,
    "h": 113.3
  },
  "luminance": 0.31916
}

Semantic roles & 50–950 ramp

primary
#98A01F
secondary
#5E58C3
accent
#3DEA48
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #98A01F

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

Preview Lab → · Contrast checker → · Palette generator →

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