#98A540#98A540

#98A540 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.1% C 0.126 H 116.0°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#98A540
RGBrgb(152, 165, 64)
HSLhsl(68, 44%, 45%)
HSVhsv(68, 61%, 65%)
CMYKcmyk(7.9%, 0%, 61.2%, 35.3%)
CIE-LABlab(64.93, -18.81, 49.40)
CIE-LCHlch(64.93, 52.86, 110.84°)
OKLaboklab(69.12% -0.0553 0.1134)
OKLCHoklch(69.12% 0.126 116)
XYZxyz(27.3300, 33.9562, 9.9640)
Luminance0.3396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A540 #4D40A5
analogous
#A58040 #98A540 #65A540
triadic
#98A540 #4098A5 #A54098
tetradic
#98A540 #40A580 #4D40A5 #A54065
square
#98A540 #40A580 #4D40A5 #A54065
split-complementary
#98A540 #4065A5 #8040A5
monochromatic
#474D1E #6F792F #98A540 #B5C261 #CAD38D

Accessibility & contrast

On white

2.70
#98A540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#98A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A540
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A540#FFFFFF#000000##000000
##98A5401.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D34
Deuteranopia (green-blind)
#AF9E46
Tritanopia (blue-blind)
#A19C90
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #98a540;
/* rgb */ color: rgb(152, 165, 64);
/* oklch */ color: oklch(69.1% 0.126 116.0);
Tailwind
colors: {
  custom: {
    50: '#b9bf79',
    500: '#98a540',
    950: '#000000',
  },
}
SCSS
$custom: #98a540;
$custom-light: #b9bf79;
$custom-dark: #000000;
JSON
{
  "hex": "#98a540",
  "rgb": {
    "r": 152,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 67.723,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.69117,
    "c": 0.12618,
    "h": 116
  },
  "luminance": 0.33956
}

Semantic roles & 50–950 ramp

primary
#98A540
secondary
#8B83BE
accent
#54D464
background
#FBFBF7
surface
#F6F7EE
border
#D0D0C9
text
#121209
muted
#81817B

Preview Lab

Preview with #98A540

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

Preview Lab → · Contrast checker → · Palette generator →

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