#998D40#998D40

#998D40 is a light, moderate yellow. Relative luminance 0.262; OKLCH L 63.8% C 0.099 H 100.6°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#998D40
RGBrgb(153, 141, 64)
HSLhsl(52, 41%, 43%)
HSVhsv(52, 58%, 60%)
CMYKcmyk(0%, 7.8%, 58.2%, 40%)
CIE-LABlab(58.22, -5.70, 41.95)
CIE-LCHlch(58.22, 42.33, 97.74°)
OKLaboklab(63.79% -0.0182 0.0975)
OKLCHoklch(63.79% 0.099 100.6)
XYZxyz(23.5880, 26.1931, 8.6628)
Luminance0.2619 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998D40 #404C99
analogous
#996040 #998D40 #799940
triadic
#998D40 #40998D #8D4099
tetradic
#998D40 #409960 #404C99 #994079
square
#998D40 #409960 #404C99 #994079
split-complementary
#998D40 #407999 #604099
monochromatic
#433D1C #6E652E #998D40 #BBAE5C #CDC387

Accessibility & contrast

On white

3.37
#998D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#998D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998D40
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998D40#FFFFFF#000000##000000
##998D401.003.376.246.24
#FFFFFF3.371.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998938
Deuteranopia (green-blind)
#9C8E44
Tritanopia (blue-blind)
#A4847C
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #998d40;
/* rgb */ color: rgb(153, 141, 64);
/* oklch */ color: oklch(63.8% 0.099 100.6);
Tailwind
colors: {
  custom: {
    50: '#b9ae77',
    500: '#998d40',
    950: '#000000',
  },
}
SCSS
$custom: #998d40;
$custom-light: #b9ae77;
$custom-dark: #000000;
JSON
{
  "hex": "#998d40",
  "rgb": {
    "r": 153,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 51.91,
    "s": 41.014,
    "l": 42.549
  },
  "oklch": {
    "l": 0.63787,
    "c": 0.09918,
    "h": 100.6
  },
  "luminance": 0.26192
}

Semantic roles & 50–950 ramp

primary
#998D40
secondary
#7E85B7
accent
#67D157
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #998D40

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

Preview Lab → · Contrast checker → · Palette generator →

#998D40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva