#9E8D26#9E8D26

#9E8D26 is a light, moderate yellow. Relative luminance 0.265; OKLCH L 64.0% C 0.120 H 99.5°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#9E8D26
RGBrgb(158, 141, 38)
HSLhsl(52, 61%, 38%)
HSVhsv(52, 76%, 62%)
CMYKcmyk(0%, 10.8%, 75.9%, 38%)
CIE-LABlab(58.47, -5.07, 53.68)
CIE-LCHlch(58.47, 53.92, 95.40°)
OKLaboklab(64.03% -0.0197 0.118)
OKLCHoklch(64.03% 0.12 99.5)
XYZxyz(23.9764, 26.4600, 5.6777)
Luminance0.2646 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8D26 #26379E
analogous
#9E5126 #9E8D26 #739E26
triadic
#9E8D26 #269E8D #8D269E
tetradic
#9E8D26 #269E51 #26379E #9E2673
square
#9E8D26 #269E51 #26379E #9E2673
split-complementary
#9E8D26 #26739E #51269E
monochromatic
#3B350E #6D611A #9E8D26 #CEB833 #DAC965

Accessibility & contrast

On white

3.34
#9E8D26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#9E8D26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8D26
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8D26#FFFFFF#000000##000000
##9E8D261.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8912
Deuteranopia (green-blind)
#A08F2D
Tritanopia (blue-blind)
#AB8279
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8d26;
/* rgb */ color: rgb(158, 141, 38);
/* oklch */ color: oklch(64.0% 0.120 99.5);
Tailwind
colors: {
  custom: {
    50: '#beae68',
    500: '#9e8d26',
    950: '#000000',
  },
}
SCSS
$custom: #9e8d26;
$custom-light: #beae68;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8d26",
  "rgb": {
    "r": 158,
    "g": 141,
    "b": 38
  },
  "hsl": {
    "h": 51.5,
    "s": 61.224,
    "l": 38.431
  },
  "oklch": {
    "l": 0.64028,
    "c": 0.11958,
    "h": 99.5
  },
  "luminance": 0.26459
}

Semantic roles & 50–950 ramp

primary
#9E8D26
secondary
#606EC0
accent
#5AE443
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8D26

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

Preview Lab → · Contrast checker → · Palette generator →

#9E8D26 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva