#998F21#998F21

#998F21 is a light, vivid yellow. Relative luminance 0.265; OKLCH L 64.0% C 0.124 H 103.9°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#998F21
RGBrgb(153, 143, 33)
HSLhsl(55, 65%, 36%)
HSVhsv(55, 78%, 60%)
CMYKcmyk(0%, 6.5%, 78.4%, 40%)
CIE-LABlab(58.53, -8.64, 55.32)
CIE-LCHlch(58.53, 55.99, 98.87°)
OKLaboklab(63.96% -0.03 0.1207)
OKLCHoklch(63.96% 0.124 103.9)
XYZxyz(23.2349, 26.5280, 5.3351)
Luminance0.2653 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998F21 #212B99
analogous
#995321 #998F21 #679921
triadic
#998F21 #21998F #8F2199
tetradic
#998F21 #219953 #212B99 #992167
square
#998F21 #219953 #212B99 #992167
split-complementary
#998F21 #216799 #532199
monochromatic
#34310B #676016 #998F21 #CBBE2C #DBD059

Accessibility & contrast

On white

3.33
#998F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#998F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998F21
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998F21#FFFFFF#000000##000000
##998F211.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A05
Deuteranopia (green-blind)
#A08F2A
Tritanopia (blue-blind)
#A5857A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #998f21;
/* rgb */ color: rgb(153, 143, 33);
/* oklch */ color: oklch(64.0% 0.124 103.9);
Tailwind
colors: {
  custom: {
    50: '#bbaf66',
    500: '#998f21',
    950: '#000000',
  },
}
SCSS
$custom: #998f21;
$custom-light: #bbaf66;
$custom-dark: #000000;
JSON
{
  "hex": "#998f21",
  "rgb": {
    "r": 153,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 55,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63959,
    "c": 0.12434,
    "h": 103.9
  },
  "luminance": 0.26527
}

Semantic roles & 50–950 ramp

primary
#998F21
secondary
#565FBF
accent
#4EE840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #998F21

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

Preview Lab → · Contrast checker → · Palette generator →

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