#998222#998222

#998222 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.1% C 0.113 H 94.9°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#998222
RGBrgb(153, 130, 34)
HSLhsl(48, 64%, 37%)
HSVhsv(48, 78%, 60%)
CMYKcmyk(0%, 15%, 77.8%, 40%)
CIE-LABlab(54.92, -1.48, 51.64)
CIE-LCHlch(54.92, 51.66, 91.64°)
OKLaboklab(61.1% -0.0096 0.113)
OKLCHoklch(61.1% 0.113 94.9)
XYZxyz(21.4094, 22.8543, 4.7967)
Luminance0.2285 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998222 #223999
analogous
#994722 #998222 #759922
triadic
#998222 #229982 #822299
tetradic
#998222 #229947 #223999 #992275
square
#998222 #229947 #223999 #992275
split-complementary
#998222 #227599 #472299
monochromatic
#352D0C #675717 #998222 #CBAD2D #DBC25B

Accessibility & contrast

On white

3.77
#998222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#998222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998222
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998222#FFFFFF#000000##000000
##9982221.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #998222;
/* rgb */ color: rgb(153, 130, 34);
/* oklch */ color: oklch(61.1% 0.113 94.9);
Tailwind
colors: {
  custom: {
    50: '#bba565',
    500: '#998222',
    950: '#000000',
  },
}
SCSS
$custom: #998222;
$custom-light: #bba565;
$custom-dark: #000000;
JSON
{
  "hex": "#998222",
  "rgb": {
    "r": 153,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 48.403,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61095,
    "c": 0.11343,
    "h": 94.9
  },
  "luminance": 0.22853
}

Semantic roles & 50–950 ramp

primary
#998222
secondary
#586CBF
accent
#61E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #998222

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

Preview Lab → · Contrast checker → · Palette generator →

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