#998226#998226

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

Color values

HEX#998226
RGBrgb(153, 130, 38)
HSLhsl(48, 60%, 37%)
HSVhsv(48, 75%, 60%)
CMYKcmyk(0%, 15%, 75.2%, 40%)
CIE-LABlab(54.95, -1.29, 50.14)
CIE-LCHlch(54.95, 50.16, 91.48°)
OKLaboklab(61.12% -0.0087 0.1107)
OKLCHoklch(61.12% 0.111 94.5)
XYZxyz(21.4705, 22.8787, 5.1185)
Luminance0.2288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998226 #263D99
analogous
#994926 #998226 #769926
triadic
#998226 #269982 #822699
tetradic
#998226 #269949 #263D99 #992676
square
#998226 #269949 #263D99 #992676
split-complementary
#998226 #267699 #492699
monochromatic
#372F0E #68581A #998226 #CAAC32 #D8C062

Accessibility & contrast

On white

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

On black

5.58
#998226 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998226
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998226#FFFFFF#000000##000000
##9982261.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F17
Deuteranopia (green-blind)
#96862B
Tritanopia (blue-blind)
#A67770
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #998226;
/* rgb */ color: rgb(153, 130, 38);
/* oklch */ color: oklch(61.1% 0.111 94.5);
Tailwind
colors: {
  custom: {
    50: '#bba667',
    500: '#998226',
    950: '#000000',
  },
}
SCSS
$custom: #998226;
$custom-light: #bba667;
$custom-dark: #000000;
JSON
{
  "hex": "#998226",
  "rgb": {
    "r": 153,
    "g": 130,
    "b": 38
  },
  "hsl": {
    "h": 48,
    "s": 60.209,
    "l": 37.451
  },
  "oklch": {
    "l": 0.61123,
    "c": 0.11099,
    "h": 94.5
  },
  "luminance": 0.22878
}

Semantic roles & 50–950 ramp

primary
#998226
secondary
#5E71BD
accent
#64E344
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #998226

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

Preview Lab → · Contrast checker → · Palette generator →

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