#998F42#998F42

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

Color values

HEX#998F42
RGBrgb(153, 143, 66)
HSLhsl(53, 40%, 43%)
HSVhsv(53, 57%, 60%)
CMYKcmyk(0%, 6.5%, 56.9%, 40%)
CIE-LABlab(58.80, -6.63, 41.63)
CIE-LCHlch(58.80, 42.15, 99.05°)
OKLaboklab(64.25% -0.0206 0.0971)
OKLCHoklch(64.25% 0.099 102)
XYZxyz(23.9435, 26.8114, 9.0671)
Luminance0.2681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998F42 #424C99
analogous
#996342 #998F42 #789942
triadic
#998F42 #42998F #8F4299
tetradic
#998F42 #429963 #424C99 #994278
square
#998F42 #429963 #424C99 #994278
split-complementary
#998F42 #427899 #634299
monochromatic
#433F1D #6E6730 #998F42 #BAAF5E #CCC489

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##998F42#FFFFFF#000000##000000
##998F421.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)
#9B8B3A
Deuteranopia (green-blind)
#9E8F46
Tritanopia (blue-blind)
#A4867E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #998f42;
/* rgb */ color: rgb(153, 143, 66);
/* oklch */ color: oklch(64.3% 0.099 102.0);
Tailwind
colors: {
  custom: {
    50: '#b9af79',
    500: '#998f42',
    950: '#000000',
  },
}
SCSS
$custom: #998f42;
$custom-light: #b9af79;
$custom-dark: #000000;
JSON
{
  "hex": "#998f42",
  "rgb": {
    "r": 153,
    "g": 143,
    "b": 66
  },
  "hsl": {
    "h": 53.103,
    "s": 39.726,
    "l": 42.941
  },
  "oklch": {
    "l": 0.64254,
    "c": 0.09921,
    "h": 102
  },
  "luminance": 0.26811
}

Semantic roles & 50–950 ramp

primary
#998F42
secondary
#8086B7
accent
#66D058
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #998F42

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

Preview Lab → · Contrast checker → · Palette generator →

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