#998F38#998F38

#998F38 is a light, moderate yellow. Relative luminance 0.267; OKLCH L 64.1% C 0.108 H 102.8°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#998F38
RGBrgb(153, 143, 56)
HSLhsl(54, 46%, 41%)
HSVhsv(54, 63%, 60%)
CMYKcmyk(0%, 6.5%, 63.4%, 40%)
CIE-LABlab(58.70, -7.39, 46.27)
CIE-LCHlch(58.70, 46.86, 99.07°)
OKLaboklab(64.14% -0.0239 0.1056)
OKLCHoklch(64.14% 0.108 102.8)
XYZxyz(23.6740, 26.7037, 7.6479)
Luminance0.2670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998F38 #384299
analogous
#995E38 #998F38 #729938
triadic
#998F38 #38998F #8F3899
tetradic
#998F38 #38995E #384299 #993872
square
#998F38 #38995E #384299 #993872
split-complementary
#998F38 #387299 #5E3899
monochromatic
#3F3B17 #6C6528 #998F38 #BFB34F #CFC77C

Accessibility & contrast

On white

3.31
#998F38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#998F38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998F38
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998F38#FFFFFF#000000##000000
##998F381.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8B2E
Deuteranopia (green-blind)
#9F8F3D
Tritanopia (blue-blind)
#A4867D
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #998f38;
/* rgb */ color: rgb(153, 143, 56);
/* oklch */ color: oklch(64.1% 0.108 102.8);
Tailwind
colors: {
  custom: {
    50: '#baaf73',
    500: '#998f38',
    950: '#000000',
  },
}
SCSS
$custom: #998f38;
$custom-light: #baaf73;
$custom-dark: #000000;
JSON
{
  "hex": "#998f38",
  "rgb": {
    "r": 153,
    "g": 143,
    "b": 56
  },
  "hsl": {
    "h": 53.814,
    "s": 46.411,
    "l": 40.98
  },
  "oklch": {
    "l": 0.64142,
    "c": 0.10832,
    "h": 102.8
  },
  "luminance": 0.26703
}

Semantic roles & 50–950 ramp

primary
#998F38
secondary
#747BB8
accent
#5FD652
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #998F38

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

Preview Lab → · Contrast checker → · Palette generator →

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