#98A42B#98A42B

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

Color values

HEX#98A42B
RGBrgb(152, 164, 43)
HSLhsl(66, 58%, 41%)
HSVhsv(66, 74%, 64%)
CMYKcmyk(7.3%, 0%, 73.8%, 35.7%)
CIE-LABlab(64.48, -19.61, 57.42)
CIE-LCHlch(64.48, 60.67, 108.86°)
OKLaboklab(68.71% -0.0596 0.127)
OKLCHoklch(68.71% 0.14 115.1)
XYZxyz(26.6611, 33.4012, 7.3276)
Luminance0.3340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A42B #372BA4
analogous
#A4732B #98A42B #5CA42B
triadic
#98A42B #2B98A4 #A42B98
tetradic
#98A42B #2BA473 #372BA4 #A42B5C
square
#98A42B #2BA473 #372BA4 #A42B5C
split-complementary
#98A42B #2B5CA4 #732BA4
monochromatic
#3E4312 #6B741E #98A42B #BFCD3F #CFD970

Accessibility & contrast

On white

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

On black

7.68
#98A42B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A42B
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A42B#FFFFFF#000000##000000
##98A42B1.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #98a42b;
/* rgb */ color: rgb(152, 164, 43);
/* oklch */ color: oklch(68.7% 0.140 115.1);
Tailwind
colors: {
  custom: {
    50: '#babe6d',
    500: '#98a42b',
    950: '#000000',
  },
}
SCSS
$custom: #98a42b;
$custom-light: #babe6d;
$custom-dark: #000000;
JSON
{
  "hex": "#98a42b",
  "rgb": {
    "r": 152,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 65.95,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.68711,
    "c": 0.14032,
    "h": 115.1
  },
  "luminance": 0.33401
}

Semantic roles & 50–950 ramp

primary
#98A42B
secondary
#736AC1
accent
#46E256
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121208
muted
#81817B

Preview Lab

Preview with #98A42B

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

Preview Lab → · Contrast checker → · Palette generator →

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