#998521#998521

#998521 is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.7% C 0.116 H 97.2°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#998521
RGBrgb(153, 133, 33)
HSLhsl(50, 65%, 36%)
HSVhsv(50, 78%, 60%)
CMYKcmyk(0%, 13.1%, 78.4%, 40%)
CIE-LABlab(55.74, -3.18, 52.77)
CIE-LCHlch(55.74, 52.86, 93.45°)
OKLaboklab(61.74% -0.0146 0.1152)
OKLCHoklch(61.74% 0.116 97.2)
XYZxyz(21.8001, 23.6583, 4.8568)
Luminance0.2366 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998521 #213599
analogous
#994921 #998521 #719921
triadic
#998521 #219985 #852199
tetradic
#998521 #219949 #213599 #992171
square
#998521 #219949 #213599 #992171
split-complementary
#998521 #217199 #492199
monochromatic
#342D0B #675916 #998521 #CBB12C #DBC659

Accessibility & contrast

On white

3.66
#998521 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#998521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998521
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998521#FFFFFF#000000##000000
##9985211.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820B
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#A67A72
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #998521;
/* rgb */ color: rgb(153, 133, 33);
/* oklch */ color: oklch(61.7% 0.116 97.2);
Tailwind
colors: {
  custom: {
    50: '#bba865',
    500: '#998521',
    950: '#000000',
  },
}
SCSS
$custom: #998521;
$custom-light: #bba865;
$custom-dark: #000000;
JSON
{
  "hex": "#998521",
  "rgb": {
    "r": 153,
    "g": 133,
    "b": 33
  },
  "hsl": {
    "h": 50,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61744,
    "c": 0.11613,
    "h": 97.2
  },
  "luminance": 0.23657
}

Semantic roles & 50–950 ramp

primary
#998521
secondary
#5668BF
accent
#5CE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #998521

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

Preview Lab → · Contrast checker → · Palette generator →

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