#998E21#998E21

#998E21 is a light, vivid yellow. Relative luminance 0.262; OKLCH L 63.7% C 0.123 H 103.3°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#998E21
RGBrgb(153, 142, 33)
HSLhsl(55, 65%, 36%)
HSVhsv(55, 78%, 60%)
CMYKcmyk(0%, 7.2%, 78.4%, 40%)
CIE-LABlab(58.25, -8.10, 55.07)
CIE-LCHlch(58.25, 55.66, 98.36°)
OKLaboklab(63.74% -0.0284 0.1201)
OKLCHoklch(63.74% 0.123 103.3)
XYZxyz(23.0854, 26.2291, 5.2853)
Luminance0.2623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998E21 #212C99
analogous
#995221 #998E21 #689921
triadic
#998E21 #21998E #8E2199
tetradic
#998E21 #219952 #212C99 #992168
square
#998E21 #219952 #212C99 #992168
split-complementary
#998E21 #216899 #522199
monochromatic
#34310B #675F16 #998E21 #CBBD2C #DBCF59

Accessibility & contrast

On white

3.36
#998E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#998E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998E21
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998E21#FFFFFF#000000##000000
##998E211.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8906
Deuteranopia (green-blind)
#9F8E29
Tritanopia (blue-blind)
#A5847A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #998e21;
/* rgb */ color: rgb(153, 142, 33);
/* oklch */ color: oklch(63.7% 0.123 103.3);
Tailwind
colors: {
  custom: {
    50: '#bbae66',
    500: '#998e21',
    950: '#000000',
  },
}
SCSS
$custom: #998e21;
$custom-light: #bbae66;
$custom-dark: #000000;
JSON
{
  "hex": "#998e21",
  "rgb": {
    "r": 153,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 54.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63736,
    "c": 0.12345,
    "h": 103.3
  },
  "luminance": 0.26228
}

Semantic roles & 50–950 ramp

primary
#998E21
secondary
#5660BF
accent
#50E840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #998E21

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

Preview Lab → · Contrast checker → · Palette generator →

#998E21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva