#998525#998525

#998525 is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.8% C 0.114 H 96.9°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#998525
RGBrgb(153, 133, 37)
HSLhsl(50, 61%, 37%)
HSVhsv(50, 76%, 60%)
CMYKcmyk(0%, 13.1%, 75.8%, 40%)
CIE-LABlab(55.77, -3.01, 51.32)
CIE-LCHlch(55.77, 51.41, 93.35°)
OKLaboklab(61.77% -0.0137 0.113)
OKLCHoklch(61.77% 0.114 96.9)
XYZxyz(21.8594, 23.6821, 5.1696)
Luminance0.2368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998525 #253999
analogous
#994B25 #998525 #739925
triadic
#998525 #259985 #852599
tetradic
#998525 #25994B #253999 #992573
square
#998525 #25994B #253999 #992573
split-complementary
#998525 #257399 #4B2599
monochromatic
#362F0D #685A19 #998525 #CAB031 #D9C460

Accessibility & contrast

On white

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

On black

5.74
#998525 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998525
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998525#FFFFFF#000000##000000
##9985251.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938214
Deuteranopia (green-blind)
#98882B
Tritanopia (blue-blind)
#A57A72
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #998525;
/* rgb */ color: rgb(153, 133, 37);
/* oklch */ color: oklch(61.8% 0.114 96.9);
Tailwind
colors: {
  custom: {
    50: '#bba867',
    500: '#998525',
    950: '#000000',
  },
}
SCSS
$custom: #998525;
$custom-light: #bba867;
$custom-dark: #000000;
JSON
{
  "hex": "#998525",
  "rgb": {
    "r": 153,
    "g": 133,
    "b": 37
  },
  "hsl": {
    "h": 49.655,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.6177,
    "c": 0.11377,
    "h": 96.9
  },
  "luminance": 0.23681
}

Semantic roles & 50–950 ramp

primary
#998525
secondary
#5C6DBE
accent
#5FE444
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #998525

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

Preview Lab → · Contrast checker → · Palette generator →

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