#998822#998822

#998822 is a light, moderate yellow. Relative luminance 0.245; OKLCH L 62.4% C 0.118 H 99.3°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#998822
RGBrgb(153, 136, 34)
HSLhsl(51, 64%, 37%)
HSVhsv(51, 78%, 60%)
CMYKcmyk(0%, 11.1%, 77.8%, 40%)
CIE-LABlab(56.58, -4.79, 53.19)
CIE-LCHlch(56.58, 53.40, 95.14°)
OKLaboklab(62.41% -0.019 0.1163)
OKLCHoklch(62.41% 0.118 99.3)
XYZxyz(22.2309, 24.4972, 5.0705)
Luminance0.2450 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998822 #223399
analogous
#994D22 #998822 #6F9922
triadic
#998822 #229988 #882299
tetradic
#998822 #22994D #223399 #99226F
square
#998822 #22994D #223399 #99226F
split-complementary
#998822 #226F99 #4D2299
monochromatic
#352F0C #675B17 #998822 #CBB52D #DBC85B

Accessibility & contrast

On white

3.56
#998822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#998822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998822
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998822#FFFFFF#000000##000000
##9988221.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#96840C
Deuteranopia (green-blind)
#9A8A29
Tritanopia (blue-blind)
#A57D75
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #998822;
/* rgb */ color: rgb(153, 136, 34);
/* oklch */ color: oklch(62.4% 0.118 99.3);
Tailwind
colors: {
  custom: {
    50: '#bbaa66',
    500: '#998822',
    950: '#000000',
  },
}
SCSS
$custom: #998822;
$custom-light: #bbaa66;
$custom-dark: #000000;
JSON
{
  "hex": "#998822",
  "rgb": {
    "r": 153,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 51.429,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.6241,
    "c": 0.11787,
    "h": 99.3
  },
  "luminance": 0.24496
}

Semantic roles & 50–950 ramp

primary
#998822
secondary
#5867BF
accent
#59E741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #998822

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

Preview Lab → · Contrast checker → · Palette generator →

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