#998F20#998F20

#998F20 is a light, vivid yellow. Relative luminance 0.265; OKLCH L 64.0% C 0.125 H 104.0°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#998F20
RGBrgb(153, 143, 32)
HSLhsl(55, 65%, 36%)
HSVhsv(55, 79%, 60%)
CMYKcmyk(0%, 6.5%, 79.1%, 40%)
CIE-LABlab(58.53, -8.68, 55.65)
CIE-LCHlch(58.53, 56.32, 98.86°)
OKLaboklab(63.95% -0.0302 0.1212)
OKLCHoklch(63.95% 0.125 104)
XYZxyz(23.2211, 26.5225, 5.2624)
Luminance0.2652 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998F20 #202A99
analogous
#995320 #998F20 #679920
triadic
#998F20 #20998F #8F2099
tetradic
#998F20 #209953 #202A99 #992067
square
#998F20 #209953 #202A99 #992067
split-complementary
#998F20 #206799 #532099
monochromatic
#34300B #666015 #998F20 #CCBE2B #DCD157

Accessibility & contrast

On white

3.33
#998F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#998F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998F20
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998F20#FFFFFF#000000##000000
##998F201.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A02
Deuteranopia (green-blind)
#A08F29
Tritanopia (blue-blind)
#A5857A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #998f20;
/* rgb */ color: rgb(153, 143, 32);
/* oklch */ color: oklch(64.0% 0.125 104.0);
Tailwind
colors: {
  custom: {
    50: '#bbaf66',
    500: '#998f20',
    950: '#000000',
  },
}
SCSS
$custom: #998f20;
$custom-light: #bbaf66;
$custom-dark: #000000;
JSON
{
  "hex": "#998f20",
  "rgb": {
    "r": 153,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 55.041,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63953,
    "c": 0.12487,
    "h": 104
  },
  "luminance": 0.26522
}

Semantic roles & 50–950 ramp

primary
#998F20
secondary
#555EC0
accent
#4DE83F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #998F20

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

Preview Lab → · Contrast checker → · Palette generator →

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