#998F31#998F31

#998F31 is a light, moderate yellow. Relative luminance 0.266; OKLCH L 64.1% C 0.114 H 103.2°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#998F31
RGBrgb(153, 143, 49)
HSLhsl(54, 51%, 40%)
HSVhsv(54, 68%, 60%)
CMYKcmyk(0%, 6.5%, 68%, 40%)
CIE-LABlab(58.64, -7.84, 49.31)
CIE-LCHlch(58.64, 49.92, 99.03°)
OKLaboklab(64.08% -0.026 0.1109)
OKLCHoklch(64.08% 0.114 103.2)
XYZxyz(23.5147, 26.6399, 6.8085)
Luminance0.2664 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998F31 #313B99
analogous
#995B31 #998F31 #6F9931
triadic
#998F31 #31998F #8F3199
tetradic
#998F31 #31995B #313B99 #99316F
square
#998F31 #31995B #313B99 #99316F
split-complementary
#998F31 #316F99 #5B3199
monochromatic
#3C3813 #6B6422 #998F31 #C3B744 #D2C972

Accessibility & contrast

On white

3.32
#998F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#998F31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998F31
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998F31#FFFFFF#000000##000000
##998F311.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A24
Deuteranopia (green-blind)
#9F8F37
Tritanopia (blue-blind)
#A4857C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #998f31;
/* rgb */ color: rgb(153, 143, 49);
/* oklch */ color: oklch(64.1% 0.114 103.2);
Tailwind
colors: {
  custom: {
    50: '#baaf6e',
    500: '#998f31',
    950: '#000000',
  },
}
SCSS
$custom: #998f31;
$custom-light: #baaf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#998f31",
  "rgb": {
    "r": 153,
    "g": 143,
    "b": 49
  },
  "hsl": {
    "h": 54.231,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.64076,
    "c": 0.11396,
    "h": 103.2
  },
  "luminance": 0.26639
}

Semantic roles & 50–950 ramp

primary
#998F31
secondary
#6C73BA
accent
#5BDB4D
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #998F31

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

Preview Lab → · Contrast checker → · Palette generator →

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