#998B21#998B21

#998B21 is a light, vivid yellow. Relative luminance 0.253; OKLCH L 63.1% C 0.121 H 101.4°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#998B21
RGBrgb(153, 139, 33)
HSLhsl(53, 65%, 36%)
HSVhsv(53, 78%, 60%)
CMYKcmyk(0%, 9.2%, 78.4%, 40%)
CIE-LABlab(57.41, -6.47, 54.30)
CIE-LCHlch(57.41, 54.68, 96.79°)
OKLaboklab(63.07% -0.0239 0.1185)
OKLCHoklch(63.07% 0.121 101.4)
XYZxyz(22.6451, 25.3484, 5.1385)
Luminance0.2535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998B21 #212F99
analogous
#994F21 #998B21 #6B9921
triadic
#998B21 #21998B #8B2199
tetradic
#998B21 #21994F #212F99 #99216B
square
#998B21 #21994F #212F99 #99216B
split-complementary
#998B21 #216B99 #4F2199
monochromatic
#34300B #675D16 #998B21 #CBB92C #DBCC59

Accessibility & contrast

On white

3.46
#998B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#998B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998B21
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998B21#FFFFFF#000000##000000
##998B211.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#998708
Deuteranopia (green-blind)
#9D8C29
Tritanopia (blue-blind)
#A58077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #998b21;
/* rgb */ color: rgb(153, 139, 33);
/* oklch */ color: oklch(63.1% 0.121 101.4);
Tailwind
colors: {
  custom: {
    50: '#bbac66',
    500: '#998b21',
    950: '#000000',
  },
}
SCSS
$custom: #998b21;
$custom-light: #bbac66;
$custom-dark: #000000;
JSON
{
  "hex": "#998b21",
  "rgb": {
    "r": 153,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 53,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63068,
    "c": 0.12087,
    "h": 101.4
  },
  "luminance": 0.25347
}

Semantic roles & 50–950 ramp

primary
#998B21
secondary
#5663BF
accent
#54E840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #998B21

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

Preview Lab → · Contrast checker → · Palette generator →

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