#998A28#998A28

#998A28 is a light, moderate yellow. Relative luminance 0.251; OKLCH L 62.9% C 0.116 H 100.3°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#998A28
RGBrgb(153, 138, 40)
HSLhsl(52, 59%, 38%)
HSVhsv(52, 74%, 60%)
CMYKcmyk(0%, 9.8%, 73.9%, 40%)
CIE-LABlab(57.18, -5.61, 51.52)
CIE-LCHlch(57.18, 51.82, 96.22°)
OKLaboklab(62.89% -0.0207 0.114)
OKLCHoklch(62.89% 0.116 100.3)
XYZxyz(22.6094, 25.1035, 5.6616)
Luminance0.2510 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998A28 #283799
analogous
#995128 #998A28 #709928
triadic
#998A28 #28998A #8A2899
tetradic
#998A28 #289951 #283799 #992870
square
#998A28 #289951 #283799 #992870
split-complementary
#998A28 #287099 #512899
monochromatic
#38320F #685E1B #998A28 #CAB635 #D7C865

Accessibility & contrast

On white

3.49
#998A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#998A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998A28
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998A28#FFFFFF#000000##000000
##998A281.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978618
Deuteranopia (green-blind)
#9C8C2E
Tritanopia (blue-blind)
#A58077
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #998a28;
/* rgb */ color: rgb(153, 138, 40);
/* oklch */ color: oklch(62.9% 0.116 100.3);
Tailwind
colors: {
  custom: {
    50: '#baab69',
    500: '#998a28',
    950: '#000000',
  },
}
SCSS
$custom: #998a28;
$custom-light: #baab69;
$custom-dark: #000000;
JSON
{
  "hex": "#998a28",
  "rgb": {
    "r": 153,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 52.035,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.62893,
    "c": 0.11584,
    "h": 100.3
  },
  "luminance": 0.25102
}

Semantic roles & 50–950 ramp

primary
#998A28
secondary
#606DBD
accent
#5BE246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #998A28

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

Preview Lab → · Contrast checker → · Palette generator →

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