#998D2F#998D2F

#998D2F is a light, moderate yellow. Relative luminance 0.260; OKLCH L 63.6% C 0.114 H 102.0°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#998D2F
RGBrgb(153, 141, 47)
HSLhsl(53, 53%, 39%)
HSVhsv(53, 69%, 60%)
CMYKcmyk(0%, 7.8%, 69.3%, 40%)
CIE-LABlab(58.06, -6.87, 49.56)
CIE-LCHlch(58.06, 50.04, 97.89°)
OKLaboklab(63.61% -0.0235 0.1111)
OKLCHoklch(63.61% 0.114 102)
XYZxyz(23.1758, 26.0283, 6.4920)
Luminance0.2603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998D2F #2F3B99
analogous
#99582F #998D2F #70992F
triadic
#998D2F #2F998D #8D2F99
tetradic
#998D2F #2F9958 #2F3B99 #992F70
square
#998D2F #2F9958 #2F3B99 #992F70
split-complementary
#998D2F #2F7099 #582F99
monochromatic
#3B3712 #6A6221 #998D2F #C5B641 #D3C86F

Accessibility & contrast

On white

3.38
#998D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#998D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998D2F
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998D2F#FFFFFF#000000##000000
##998D2F1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8922
Deuteranopia (green-blind)
#9E8E35
Tritanopia (blue-blind)
#A5837A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #998d2f;
/* rgb */ color: rgb(153, 141, 47);
/* oklch */ color: oklch(63.6% 0.114 102.0);
Tailwind
colors: {
  custom: {
    50: '#baae6d',
    500: '#998d2f',
    950: '#000000',
  },
}
SCSS
$custom: #998d2f;
$custom-light: #baae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#998d2f",
  "rgb": {
    "r": 153,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 53.208,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.63613,
    "c": 0.1136,
    "h": 102
  },
  "luminance": 0.26027
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #998D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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