#998227#998227

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

Color values

HEX#998227
RGBrgb(153, 130, 39)
HSLhsl(48, 59%, 38%)
HSVhsv(48, 75%, 60%)
CMYKcmyk(0%, 15%, 74.5%, 40%)
CIE-LABlab(54.95, -1.25, 49.75)
CIE-LCHlch(54.95, 49.77, 91.44°)
OKLaboklab(61.13% -0.0084 0.11)
OKLCHoklch(61.13% 0.11 94.4)
XYZxyz(21.4868, 22.8853, 5.2046)
Luminance0.2288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998227 #273E99
analogous
#994927 #998227 #779927
triadic
#998227 #279982 #822799
tetradic
#998227 #279949 #273E99 #992777
square
#998227 #279949 #273E99 #992777
split-complementary
#998227 #277799 #492799
monochromatic
#372F0E #68591B #998227 #CAAB33 #D7C063

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##998227#FFFFFF#000000##000000
##9982271.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)
#907F18
Deuteranopia (green-blind)
#96862C
Tritanopia (blue-blind)
#A67770
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #998227;
/* rgb */ color: rgb(153, 130, 39);
/* oklch */ color: oklch(61.1% 0.110 94.4);
Tailwind
colors: {
  custom: {
    50: '#bba668',
    500: '#998227',
    950: '#000000',
  },
}
SCSS
$custom: #998227;
$custom-light: #bba668;
$custom-dark: #000000;
JSON
{
  "hex": "#998227",
  "rgb": {
    "r": 153,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 47.895,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.6113,
    "c": 0.11035,
    "h": 94.4
  },
  "luminance": 0.22884
}

Semantic roles & 50–950 ramp

primary
#998227
secondary
#5F72BD
accent
#65E345
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #998227

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

Preview Lab → · Contrast checker → · Palette generator →

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