#998E2F#998E2F

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

Color values

HEX#998E2F
RGBrgb(153, 142, 47)
HSLhsl(54, 53%, 39%)
HSVhsv(54, 69%, 60%)
CMYKcmyk(0%, 7.2%, 69.3%, 40%)
CIE-LABlab(58.34, -7.41, 49.85)
CIE-LCHlch(58.34, 50.40, 98.46°)
OKLaboklab(63.84% -0.0251 0.1117)
OKLCHoklch(63.84% 0.115 102.6)
XYZxyz(23.3239, 26.3245, 6.5413)
Luminance0.2632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998E2F #2F3A99
analogous
#99592F #998E2F #6F992F
triadic
#998E2F #2F998E #8E2F99
tetradic
#998E2F #2F9959 #2F3A99 #992F6F
square
#998E2F #2F9959 #2F3A99 #992F6F
split-complementary
#998E2F #2F6F99 #592F99
monochromatic
#3B3712 #6A6321 #998E2F #C5B741 #D3C96F

Accessibility & contrast

On white

3.35
#998E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##998E2F#FFFFFF#000000##000000
##998E2F1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8922
Deuteranopia (green-blind)
#9E8E35
Tritanopia (blue-blind)
#A5847B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #998e2f;
/* rgb */ color: rgb(153, 142, 47);
/* oklch */ color: oklch(63.8% 0.115 102.6);
Tailwind
colors: {
  custom: {
    50: '#baae6d',
    500: '#998e2f',
    950: '#000000',
  },
}
SCSS
$custom: #998e2f;
$custom-light: #baae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#998e2f",
  "rgb": {
    "r": 153,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 53.774,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.63836,
    "c": 0.11452,
    "h": 102.6
  },
  "luminance": 0.26324
}

Semantic roles & 50–950 ramp

primary
#998E2F
secondary
#6972BA
accent
#5ADC4B
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #998E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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