#988222#988222

#988222 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 61.0% C 0.113 H 95.5°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#988222
RGBrgb(152, 130, 34)
HSLhsl(49, 63%, 36%)
HSVhsv(49, 78%, 60%)
CMYKcmyk(0%, 14.5%, 77.6%, 40.4%)
CIE-LABlab(54.82, -1.94, 51.51)
CIE-LCHlch(54.82, 51.55, 92.15°)
OKLaboklab(60.99% -0.0109 0.1128)
OKLCHoklch(60.99% 0.113 95.5)
XYZxyz(21.2214, 22.7573, 4.7879)
Luminance0.2276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#988222 #223898
analogous
#984722 #988222 #739822
triadic
#988222 #229882 #822298
tetradic
#988222 #229847 #223898 #982273
square
#988222 #229847 #223898 #982273
split-complementary
#988222 #227398 #472298
monochromatic
#342C0C #665717 #988222 #CAAD2D #DAC25A

Accessibility & contrast

On white

3.78
#988222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#988222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #988222
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##988222#FFFFFF#000000##000000
##9882221.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0F
Deuteranopia (green-blind)
#968628
Tritanopia (blue-blind)
#A57770
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #988222;
/* rgb */ color: rgb(152, 130, 34);
/* oklch */ color: oklch(61.0% 0.113 95.5);
Tailwind
colors: {
  custom: {
    50: '#baa565',
    500: '#988222',
    950: '#000000',
  },
}
SCSS
$custom: #988222;
$custom-light: #baa565;
$custom-dark: #000000;
JSON
{
  "hex": "#988222",
  "rgb": {
    "r": 152,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 48.814,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60992,
    "c": 0.11331,
    "h": 95.5
  },
  "luminance": 0.22756
}

Semantic roles & 50–950 ramp

primary
#988222
secondary
#576BBE
accent
#60E641
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #988222

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

Preview Lab → · Contrast checker → · Palette generator →

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