#998228#998228

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

Color values

HEX#998228
RGBrgb(153, 130, 40)
HSLhsl(48, 59%, 38%)
HSVhsv(48, 74%, 60%)
CMYKcmyk(0%, 15%, 73.9%, 40%)
CIE-LABlab(54.96, -1.20, 49.35)
CIE-LCHlch(54.96, 49.37, 91.39°)
OKLaboklab(61.14% -0.0082 0.1094)
OKLCHoklch(61.14% 0.11 94.3)
XYZxyz(21.5036, 22.8920, 5.2930)
Luminance0.2289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998228 #283F99
analogous
#994A28 #998228 #779928
triadic
#998228 #289982 #822899
tetradic
#998228 #28994A #283F99 #992877
square
#998228 #28994A #283F99 #992877
split-complementary
#998228 #287799 #4A2899
monochromatic
#38300F #68591B #998228 #CAAB35 #D7BF65

Accessibility & contrast

On white

3.76
#998228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##998228#FFFFFF#000000##000000
##9982281.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#90801A
Deuteranopia (green-blind)
#96872D
Tritanopia (blue-blind)
#A67770
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #998228;
/* rgb */ color: rgb(153, 130, 40);
/* oklch */ color: oklch(61.1% 0.110 94.3);
Tailwind
colors: {
  custom: {
    50: '#bba668',
    500: '#998228',
    950: '#000000',
  },
}
SCSS
$custom: #998228;
$custom-light: #bba668;
$custom-dark: #000000;
JSON
{
  "hex": "#998228",
  "rgb": {
    "r": 153,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 47.788,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.61138,
    "c": 0.1097,
    "h": 94.3
  },
  "luminance": 0.22891
}

Semantic roles & 50–950 ramp

primary
#998228
secondary
#6073BD
accent
#66E246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #998228

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

Preview Lab → · Contrast checker → · Palette generator →

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