#998E2B#998E2B

#998E2B is a light, moderate yellow. Relative luminance 0.263; OKLCH L 63.8% C 0.117 H 102.9°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#998E2B
RGBrgb(153, 142, 43)
HSLhsl(54, 56%, 38%)
HSVhsv(54, 72%, 60%)
CMYKcmyk(0%, 7.2%, 71.9%, 40%)
CIE-LABlab(58.31, -7.63, 51.45)
CIE-LCHlch(58.31, 52.02, 98.44°)
OKLaboklab(63.8% -0.0261 0.1144)
OKLCHoklch(63.8% 0.117 102.9)
XYZxyz(23.2469, 26.2937, 6.1357)
Luminance0.2629 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998E2B #2B3699
analogous
#99572B #998E2B #6D992B
triadic
#998E2B #2B998E #8E2B99
tetradic
#998E2B #2B9957 #2B3699 #992B6D
square
#998E2B #2B9957 #2B3699 #992B6D
split-complementary
#998E2B #2B6D99 #572B99
monochromatic
#393510 #69621E #998E2B #C8B93A #D5CA69

Accessibility & contrast

On white

3.36
#998E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#998E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998E2B
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998E2B#FFFFFF#000000##000000
##998E2B1.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B891B
Deuteranopia (green-blind)
#9F8E31
Tritanopia (blue-blind)
#A5847A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #998e2b;
/* rgb */ color: rgb(153, 142, 43);
/* oklch */ color: oklch(63.8% 0.117 102.9);
Tailwind
colors: {
  custom: {
    50: '#baae6b',
    500: '#998e2b',
    950: '#000000',
  },
}
SCSS
$custom: #998e2b;
$custom-light: #baae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#998e2b",
  "rgb": {
    "r": 153,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 54,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63803,
    "c": 0.11735,
    "h": 102.9
  },
  "luminance": 0.26293
}

Semantic roles & 50–950 ramp

primary
#998E2B
secondary
#646DBC
accent
#57DF48
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #998E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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