#998C2F#998C2F

#998C2F is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.4% C 0.113 H 101.2°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#998C2F
RGBrgb(153, 140, 47)
HSLhsl(53, 53%, 39%)
HSVhsv(53, 69%, 60%)
CMYKcmyk(0%, 8.5%, 69.3%, 40%)
CIE-LABlab(57.78, -6.33, 49.28)
CIE-LCHlch(57.78, 49.68, 97.32°)
OKLaboklab(63.39% -0.022 0.1105)
OKLCHoklch(63.39% 0.113 101.2)
XYZxyz(23.0290, 25.7347, 6.4430)
Luminance0.2573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998C2F #2F3C99
analogous
#99572F #998C2F #71992F
triadic
#998C2F #2F998C #8C2F99
tetradic
#998C2F #2F9957 #2F3C99 #992F71
square
#998C2F #2F9957 #2F3C99 #992F71
split-complementary
#998C2F #2F7199 #572F99
monochromatic
#3B3612 #6A6121 #998C2F #C5B441 #D3C76F

Accessibility & contrast

On white

3.42
#998C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#998C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998C2F
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998C2F#FFFFFF#000000##000000
##998C2F1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998822
Deuteranopia (green-blind)
#9D8D35
Tritanopia (blue-blind)
#A58279
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #998c2f;
/* rgb */ color: rgb(153, 140, 47);
/* oklch */ color: oklch(63.4% 0.113 101.2);
Tailwind
colors: {
  custom: {
    50: '#baad6d',
    500: '#998c2f',
    950: '#000000',
  },
}
SCSS
$custom: #998c2f;
$custom-light: #baad6d;
$custom-dark: #000000;
JSON
{
  "hex": "#998c2f",
  "rgb": {
    "r": 153,
    "g": 140,
    "b": 47
  },
  "hsl": {
    "h": 52.642,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.63391,
    "c": 0.11269,
    "h": 101.2
  },
  "luminance": 0.25734
}

Semantic roles & 50–950 ramp

primary
#998C2F
secondary
#6973BA
accent
#5DDC4B
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #998C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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