#998B2A#998B2A

#998B2A is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.1% C 0.115 H 100.9°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#998B2A
RGBrgb(153, 139, 42)
HSLhsl(52, 57%, 38%)
HSVhsv(52, 73%, 60%)
CMYKcmyk(0%, 9.2%, 72.5%, 40%)
CIE-LABlab(57.47, -6.06, 51.02)
CIE-LCHlch(57.47, 51.37, 96.77°)
OKLaboklab(63.13% -0.0218 0.1133)
OKLCHoklch(63.13% 0.115 100.9)
XYZxyz(22.7884, 25.4057, 5.8935)
Luminance0.2540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998B2A #2A3899
analogous
#99532A #998B2A #6F992A
triadic
#998B2A #2A998B #8B2A99
tetradic
#998B2A #2A9953 #2A3899 #992A6F
square
#998B2A #2A9953 #2A3899 #992A6F
split-complementary
#998B2A #2A6F99 #532A99
monochromatic
#393410 #695F1D #998B2A #C8B638 #D6C868

Accessibility & contrast

On white

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

On black

6.08
#998B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998B2A
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998B2A#FFFFFF#000000##000000
##998B2A1.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871B
Deuteranopia (green-blind)
#9C8C30
Tritanopia (blue-blind)
#A58178
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #998b2a;
/* rgb */ color: rgb(153, 139, 42);
/* oklch */ color: oklch(63.1% 0.115 100.9);
Tailwind
colors: {
  custom: {
    50: '#baac6a',
    500: '#998b2a',
    950: '#000000',
  },
}
SCSS
$custom: #998b2a;
$custom-light: #baac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#998b2a",
  "rgb": {
    "r": 153,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 52.432,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.63129,
    "c": 0.11536,
    "h": 100.9
  },
  "luminance": 0.25405
}

Semantic roles & 50–950 ramp

primary
#998B2A
secondary
#636EBC
accent
#5BE048
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #998B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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