#998B2F#998B2F

#998B2F is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.112 H 100.5°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#998B2F
RGBrgb(153, 139, 47)
HSLhsl(52, 53%, 39%)
HSVhsv(52, 69%, 60%)
CMYKcmyk(0%, 9.2%, 69.3%, 40%)
CIE-LABlab(57.51, -5.78, 48.99)
CIE-LCHlch(57.51, 49.33, 96.73°)
OKLaboklab(63.17% -0.0204 0.1099)
OKLCHoklch(63.17% 0.112 100.5)
XYZxyz(22.8836, 25.4438, 6.3945)
Luminance0.2544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998B2F #2F3D99
analogous
#99562F #998B2F #72992F
triadic
#998B2F #2F998B #8B2F99
tetradic
#998B2F #2F9956 #2F3D99 #992F72
square
#998B2F #2F9956 #2F3D99 #992F72
split-complementary
#998B2F #2F7299 #562F99
monochromatic
#3B3612 #6A6021 #998B2F #C5B341 #D3C66F

Accessibility & contrast

On white

3.45
#998B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#998B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998B2F
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998B2F#FFFFFF#000000##000000
##998B2F1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988722
Deuteranopia (green-blind)
#9C8C34
Tritanopia (blue-blind)
#A58178
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #998b2f;
/* rgb */ color: rgb(153, 139, 47);
/* oklch */ color: oklch(63.2% 0.112 100.5);
Tailwind
colors: {
  custom: {
    50: '#baac6d',
    500: '#998b2f',
    950: '#000000',
  },
}
SCSS
$custom: #998b2f;
$custom-light: #baac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#998b2f",
  "rgb": {
    "r": 153,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 52.075,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.6317,
    "c": 0.11181,
    "h": 100.5
  },
  "luminance": 0.25443
}

Semantic roles & 50–950 ramp

primary
#998B2F
secondary
#6974BA
accent
#5FDC4B
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #998B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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