#98A42C#98A42C

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

Color values

HEX#98A42C
RGBrgb(152, 164, 44)
HSLhsl(66, 58%, 41%)
HSVhsv(66, 73%, 64%)
CMYKcmyk(7.3%, 0%, 73.2%, 35.7%)
CIE-LABlab(64.49, -19.56, 57.06)
CIE-LCHlch(64.49, 60.33, 108.92°)
OKLaboklab(68.72% -0.0594 0.1265)
OKLCHoklch(68.72% 0.14 115.2)
XYZxyz(26.6797, 33.4086, 7.4254)
Luminance0.3341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A42C #382CA4
analogous
#A4742C #98A42C #5CA42C
triadic
#98A42C #2C98A4 #A42C98
tetradic
#98A42C #2CA474 #382CA4 #A42C5C
square
#98A42C #2CA474 #382CA4 #A42C5C
split-complementary
#98A42C #2C5CA4 #742CA4
monochromatic
#3F4312 #6B741F #98A42C #BECC41 #CFD971

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##98A42C#FFFFFF#000000##000000
##98A42C1.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)
#B09C15
Deuteranopia (green-blind)
#AF9D36
Tritanopia (blue-blind)
#A29A8D
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #98a42c;
/* rgb */ color: rgb(152, 164, 44);
/* oklch */ color: oklch(68.7% 0.140 115.2);
Tailwind
colors: {
  custom: {
    50: '#babe6e',
    500: '#98a42c',
    950: '#000000',
  },
}
SCSS
$custom: #98a42c;
$custom-light: #babe6e;
$custom-dark: #000000;
JSON
{
  "hex": "#98a42c",
  "rgb": {
    "r": 152,
    "g": 164,
    "b": 44
  },
  "hsl": {
    "h": 66,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.68718,
    "c": 0.13971,
    "h": 115.2
  },
  "luminance": 0.33408
}

Semantic roles & 50–950 ramp

primary
#98A42C
secondary
#746BC0
accent
#47E156
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121208
muted
#81817B

Preview Lab

Preview with #98A42C

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

Preview Lab → · Contrast checker → · Palette generator →

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