#998621#998621

#998621 is a mid, moderate yellow. Relative luminance 0.239; OKLCH L 62.0% C 0.117 H 97.9°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#998621
RGBrgb(153, 134, 33)
HSLhsl(51, 65%, 36%)
HSVhsv(51, 78%, 60%)
CMYKcmyk(0%, 12.4%, 78.4%, 40%)
CIE-LABlab(56.02, -3.73, 53.02)
CIE-LCHlch(56.02, 53.15, 94.03°)
OKLaboklab(61.96% -0.0161 0.1158)
OKLCHoklch(61.96% 0.117 97.9)
XYZxyz(21.9376, 23.9334, 4.9027)
Luminance0.2393 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998621 #213499
analogous
#994A21 #998621 #709921
triadic
#998621 #219986 #862199
tetradic
#998621 #21994A #213499 #992170
square
#998621 #21994A #213499 #992170
split-complementary
#998621 #217099 #4A2199
monochromatic
#342E0B #675A16 #998621 #CBB22C #DBC759

Accessibility & contrast

On white

3.63
#998621 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#998621 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998621
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998621#FFFFFF#000000##000000
##9986211.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830B
Deuteranopia (green-blind)
#998928
Tritanopia (blue-blind)
#A67B73
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #998621;
/* rgb */ color: rgb(153, 134, 33);
/* oklch */ color: oklch(62.0% 0.117 97.9);
Tailwind
colors: {
  custom: {
    50: '#bba865',
    500: '#998621',
    950: '#000000',
  },
}
SCSS
$custom: #998621;
$custom-light: #bba865;
$custom-dark: #000000;
JSON
{
  "hex": "#998621",
  "rgb": {
    "r": 153,
    "g": 134,
    "b": 33
  },
  "hsl": {
    "h": 50.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61963,
    "c": 0.11688,
    "h": 97.9
  },
  "luminance": 0.23932
}

Semantic roles & 50–950 ramp

primary
#998621
secondary
#5667BF
accent
#5BE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #998621

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

Preview Lab → · Contrast checker → · Palette generator →

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