#998F40#998F40

#998F40 is a light, moderate yellow. Relative luminance 0.268; OKLCH L 64.2% C 0.101 H 102.1°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#998F40
RGBrgb(153, 143, 64)
HSLhsl(53, 41%, 43%)
HSVhsv(53, 58%, 60%)
CMYKcmyk(0%, 6.5%, 58.2%, 40%)
CIE-LABlab(58.78, -6.79, 42.58)
CIE-LCHlch(58.78, 43.12, 99.06°)
OKLaboklab(64.23% -0.0213 0.0989)
OKLCHoklch(64.23% 0.101 102.1)
XYZxyz(23.8856, 26.7883, 8.7620)
Luminance0.2679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998F40 #404A99
analogous
#996240 #998F40 #779940
triadic
#998F40 #40998F #8F4099
tetradic
#998F40 #409962 #404A99 #994077
square
#998F40 #409962 #404A99 #994077
split-complementary
#998F40 #407799 #624099
monochromatic
#433E1C #6E672E #998F40 #BBB05C #CDC587

Accessibility & contrast

On white

3.30
#998F40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#998F40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998F40
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998F40#FFFFFF#000000##000000
##998F401.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8B38
Deuteranopia (green-blind)
#9E8F44
Tritanopia (blue-blind)
#A4867E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #998f40;
/* rgb */ color: rgb(153, 143, 64);
/* oklch */ color: oklch(64.2% 0.101 102.1);
Tailwind
colors: {
  custom: {
    50: '#b9af78',
    500: '#998f40',
    950: '#000000',
  },
}
SCSS
$custom: #998f40;
$custom-light: #b9af78;
$custom-dark: #000000;
JSON
{
  "hex": "#998f40",
  "rgb": {
    "r": 153,
    "g": 143,
    "b": 64
  },
  "hsl": {
    "h": 53.258,
    "s": 41.014,
    "l": 42.549
  },
  "oklch": {
    "l": 0.6423,
    "c": 0.10112,
    "h": 102.1
  },
  "luminance": 0.26787
}

Semantic roles & 50–950 ramp

primary
#998F40
secondary
#7E84B7
accent
#65D157
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #998F40

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

Preview Lab → · Contrast checker → · Palette generator →

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