#998A21#998A21

#998A21 is a light, vivid yellow. Relative luminance 0.251; OKLCH L 62.8% C 0.120 H 100.7°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#998A21
RGBrgb(153, 138, 33)
HSLhsl(53, 65%, 36%)
HSVhsv(53, 78%, 60%)
CMYKcmyk(0%, 9.8%, 78.4%, 40%)
CIE-LABlab(57.13, -5.92, 54.04)
CIE-LCHlch(57.13, 54.37, 96.26°)
OKLaboklab(62.85% -0.0223 0.1179)
OKLCHoklch(62.85% 0.12 100.7)
XYZxyz(22.5010, 25.0601, 5.0904)
Luminance0.2506 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998A21 #213099
analogous
#994E21 #998A21 #6C9921
triadic
#998A21 #21998A #8A2199
tetradic
#998A21 #21994E #213099 #99216C
square
#998A21 #21994E #213099 #99216C
split-complementary
#998A21 #216C99 #4E2199
monochromatic
#342F0B #675D16 #998A21 #CBB72C #DBCB59

Accessibility & contrast

On white

3.49
#998A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#998A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998A21
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998A21#FFFFFF#000000##000000
##998A211.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#988608
Deuteranopia (green-blind)
#9C8C29
Tritanopia (blue-blind)
#A57F76
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #998a21;
/* rgb */ color: rgb(153, 138, 33);
/* oklch */ color: oklch(62.8% 0.120 100.7);
Tailwind
colors: {
  custom: {
    50: '#bbab66',
    500: '#998a21',
    950: '#000000',
  },
}
SCSS
$custom: #998a21;
$custom-light: #bbab66;
$custom-dark: #000000;
JSON
{
  "hex": "#998a21",
  "rgb": {
    "r": 153,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 52.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.62846,
    "c": 0.12004,
    "h": 100.7
  },
  "luminance": 0.25059
}

Semantic roles & 50–950 ramp

primary
#998A21
secondary
#5664BF
accent
#55E840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #998A21

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

Preview Lab → · Contrast checker → · Palette generator →

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