#998B22#998B22

#998B22 is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.1% C 0.120 H 101.3°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#998B22
RGBrgb(153, 139, 34)
HSLhsl(53, 64%, 37%)
HSVhsv(53, 78%, 60%)
CMYKcmyk(0%, 9.2%, 77.8%, 40%)
CIE-LABlab(57.42, -6.43, 53.96)
CIE-LCHlch(57.42, 54.34, 96.79°)
OKLaboklab(63.07% -0.0237 0.118)
OKLCHoklch(63.07% 0.12 101.3)
XYZxyz(22.6593, 25.3541, 5.2133)
Luminance0.2535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998B22 #223099
analogous
#995022 #998B22 #6C9922
triadic
#998B22 #22998B #8B2299
tetradic
#998B22 #229950 #223099 #99226C
square
#998B22 #229950 #223099 #99226C
split-complementary
#998B22 #226C99 #502299
monochromatic
#35300C #675E17 #998B22 #CBB82D #DBCC5B

Accessibility & contrast

On white

3.46
#998B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#998B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998B22
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998B22#FFFFFF#000000##000000
##998B221.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870A
Deuteranopia (green-blind)
#9D8C2A
Tritanopia (blue-blind)
#A58177
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #998b22;
/* rgb */ color: rgb(153, 139, 34);
/* oklch */ color: oklch(63.1% 0.120 101.3);
Tailwind
colors: {
  custom: {
    50: '#bbac66',
    500: '#998b22',
    950: '#000000',
  },
}
SCSS
$custom: #998b22;
$custom-light: #bbac66;
$custom-dark: #000000;
JSON
{
  "hex": "#998b22",
  "rgb": {
    "r": 153,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 52.941,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.63074,
    "c": 0.12031,
    "h": 101.3
  },
  "luminance": 0.25353
}

Semantic roles & 50–950 ramp

primary
#998B22
secondary
#5864BF
accent
#55E741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #998B22

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

Preview Lab → · Contrast checker → · Palette generator →

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