#998331#998331

#998331 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.4% C 0.104 H 94.0°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#998331
RGBrgb(153, 131, 49)
HSLhsl(47, 51%, 40%)
HSVhsv(47, 68%, 60%)
CMYKcmyk(0%, 14.4%, 68%, 40%)
CIE-LABlab(55.31, -1.25, 45.83)
CIE-LCHlch(55.31, 45.85, 91.56°)
OKLaboklab(61.43% -0.0072 0.1036)
OKLCHoklch(61.43% 0.104 94)
XYZxyz(21.8086, 23.2278, 6.2398)
Luminance0.2323 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998331 #314799
analogous
#994F31 #998331 #7B9931
triadic
#998331 #319983 #833199
tetradic
#998331 #31994F #314799 #99317B
square
#998331 #31994F #314799 #99317B
split-complementary
#998331 #317B99 #4F3199
monochromatic
#3C3413 #6B5B22 #998331 #C3A844 #D2BE72

Accessibility & contrast

On white

3.72
#998331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#998331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998331
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998331#FFFFFF#000000##000000
##9983311.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918127
Deuteranopia (green-blind)
#968735
Tritanopia (blue-blind)
#A57972
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #998331;
/* rgb */ color: rgb(153, 131, 49);
/* oklch */ color: oklch(61.4% 0.104 94.0);
Tailwind
colors: {
  custom: {
    50: '#baa66d',
    500: '#998331',
    950: '#000000',
  },
}
SCSS
$custom: #998331;
$custom-light: #baa66d;
$custom-dark: #000000;
JSON
{
  "hex": "#998331",
  "rgb": {
    "r": 153,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 47.308,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.61434,
    "c": 0.10385,
    "h": 94
  },
  "luminance": 0.23227
}

Semantic roles & 50–950 ramp

primary
#998331
secondary
#6C7CBA
accent
#6BDB4D
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #998331

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

Preview Lab → · Contrast checker → · Palette generator →

#998331 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva