#998F2F#998F2F

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

Color values

HEX#998F2F
RGBrgb(153, 143, 47)
HSLhsl(54, 53%, 39%)
HSVhsv(54, 69%, 60%)
CMYKcmyk(0%, 6.5%, 69.3%, 40%)
CIE-LABlab(58.62, -7.95, 50.13)
CIE-LCHlch(58.62, 50.76, 99.02°)
OKLaboklab(64.06% -0.0266 0.1123)
OKLCHoklch(64.06% 0.115 103.3)
XYZxyz(23.4734, 26.6234, 6.5911)
Luminance0.2662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998F2F #2F3999
analogous
#995A2F #998F2F #6E992F
triadic
#998F2F #2F998F #8F2F99
tetradic
#998F2F #2F995A #2F3999 #992F6E
square
#998F2F #2F995A #2F3999 #992F6E
split-complementary
#998F2F #2F6E99 #5A2F99
monochromatic
#3B3712 #6A6321 #998F2F #C5B841 #D3CA6F

Accessibility & contrast

On white

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

On black

6.32
#998F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998F2F
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998F2F#FFFFFF#000000##000000
##998F2F1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A21
Deuteranopia (green-blind)
#9F8F35
Tritanopia (blue-blind)
#A5857C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #998f2f;
/* rgb */ color: rgb(153, 143, 47);
/* oklch */ color: oklch(64.1% 0.115 103.3);
Tailwind
colors: {
  custom: {
    50: '#baaf6d',
    500: '#998f2f',
    950: '#000000',
  },
}
SCSS
$custom: #998f2f;
$custom-light: #baaf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#998f2f",
  "rgb": {
    "r": 153,
    "g": 143,
    "b": 47
  },
  "hsl": {
    "h": 54.34,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64059,
    "c": 0.11545,
    "h": 103.3
  },
  "luminance": 0.26622
}

Semantic roles & 50–950 ramp

primary
#998F2F
secondary
#6971BA
accent
#59DC4B
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #998F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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