#998020#998020

#998020 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.6% C 0.113 H 93.5°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#998020
RGBrgb(153, 128, 32)
HSLhsl(48, 65%, 36%)
HSVhsv(48, 79%, 60%)
CMYKcmyk(0%, 16.3%, 79.1%, 40%)
CIE-LABlab(54.36, -0.44, 51.85)
CIE-LCHlch(54.36, 51.85, 90.49°)
OKLaboklab(60.65% -0.0069 0.113)
OKLCHoklch(60.65% 0.113 93.5)
XYZxyz(21.1179, 22.3162, 4.5614)
Luminance0.2231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998020 #203999
analogous
#994420 #998020 #769920
triadic
#998020 #209980 #802099
tetradic
#998020 #209944 #203999 #992076
square
#998020 #209944 #203999 #992076
split-complementary
#998020 #207699 #442099
monochromatic
#342B0B #665615 #998020 #CCAA2B #DCC157

Accessibility & contrast

On white

3.84
#998020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#998020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998020
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998020#FFFFFF#000000##000000
##9980201.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0C
Deuteranopia (green-blind)
#958526
Tritanopia (blue-blind)
#A6756E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #998020;
/* rgb */ color: rgb(153, 128, 32);
/* oklch */ color: oklch(60.6% 0.113 93.5);
Tailwind
colors: {
  custom: {
    50: '#bba464',
    500: '#998020',
    950: '#000000',
  },
}
SCSS
$custom: #998020;
$custom-light: #bba464;
$custom-dark: #000000;
JSON
{
  "hex": "#998020",
  "rgb": {
    "r": 153,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 47.603,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60648,
    "c": 0.11325,
    "h": 93.5
  },
  "luminance": 0.22315
}

Semantic roles & 50–950 ramp

primary
#998020
secondary
#556BC0
accent
#62E83F
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #998020

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

Preview Lab → · Contrast checker → · Palette generator →

#998020 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva