#998E31#998E31

#998E31 is a light, moderate yellow. Relative luminance 0.263; OKLCH L 63.9% C 0.113 H 102.5°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#998E31
RGBrgb(153, 142, 49)
HSLhsl(54, 51%, 40%)
HSVhsv(54, 68%, 60%)
CMYKcmyk(0%, 7.2%, 68%, 40%)
CIE-LABlab(58.36, -7.30, 49.02)
CIE-LCHlch(58.36, 49.56, 98.47°)
OKLaboklab(63.85% -0.0245 0.1103)
OKLCHoklch(63.85% 0.113 102.5)
XYZxyz(23.3652, 26.3410, 6.7587)
Luminance0.2634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998E31 #313C99
analogous
#995A31 #998E31 #709931
triadic
#998E31 #31998E #8E3199
tetradic
#998E31 #31995A #313C99 #993170
square
#998E31 #31995A #313C99 #993170
split-complementary
#998E31 #317099 #5A3199
monochromatic
#3C3813 #6B6322 #998E31 #C3B644 #D2C872

Accessibility & contrast

On white

3.35
#998E31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#998E31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998E31
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998E31#FFFFFF#000000##000000
##998E311.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8A24
Deuteranopia (green-blind)
#9E8F37
Tritanopia (blue-blind)
#A4847B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #998e31;
/* rgb */ color: rgb(153, 142, 49);
/* oklch */ color: oklch(63.9% 0.113 102.5);
Tailwind
colors: {
  custom: {
    50: '#baae6e',
    500: '#998e31',
    950: '#000000',
  },
}
SCSS
$custom: #998e31;
$custom-light: #baae6e;
$custom-dark: #000000;
JSON
{
  "hex": "#998e31",
  "rgb": {
    "r": 153,
    "g": 142,
    "b": 49
  },
  "hsl": {
    "h": 53.654,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.63853,
    "c": 0.11302,
    "h": 102.5
  },
  "luminance": 0.2634
}

Semantic roles & 50–950 ramp

primary
#998E31
secondary
#6C74BA
accent
#5CDB4D
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #998E31

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

Preview Lab → · Contrast checker → · Palette generator →

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