#9D8D26#9D8D26

#9D8D26 is a light, moderate yellow. Relative luminance 0.264; OKLCH L 63.9% C 0.120 H 100.1°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9D8D26
RGBrgb(157, 141, 38)
HSLhsl(52, 61%, 38%)
HSVhsv(52, 76%, 62%)
CMYKcmyk(0%, 10.2%, 75.8%, 38.4%)
CIE-LABlab(58.38, -5.52, 53.56)
CIE-LCHlch(58.38, 53.84, 95.89°)
OKLaboklab(63.93% -0.0209 0.1177)
OKLCHoklch(63.93% 0.12 100.1)
XYZxyz(23.7805, 26.3589, 5.6685)
Luminance0.2636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D26 #26369D
analogous
#9D5126 #9D8D26 #719D26
triadic
#9D8D26 #269D8D #8D269D
tetradic
#9D8D26 #269D51 #26369D #9D2671
square
#9D8D26 #269D51 #26369D #9D2671
split-complementary
#9D8D26 #26719D #51269D
monochromatic
#3A340E #6C611A #9D8D26 #CEB933 #D9CA64

Accessibility & contrast

On white

3.35
#9D8D26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#9D8D26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D26
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D26#FFFFFF#000000##000000
##9D8D261.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8912
Deuteranopia (green-blind)
#9F8F2D
Tritanopia (blue-blind)
#AA8279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d26;
/* rgb */ color: rgb(157, 141, 38);
/* oklch */ color: oklch(63.9% 0.120 100.1);
Tailwind
colors: {
  custom: {
    50: '#beae68',
    500: '#9d8d26',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d26;
$custom-light: #beae68;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d26",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 38
  },
  "hsl": {
    "h": 51.933,
    "s": 61.026,
    "l": 38.235
  },
  "oklch": {
    "l": 0.6393,
    "c": 0.11958,
    "h": 100.1
  },
  "luminance": 0.26358
}

Semantic roles & 50–950 ramp

primary
#9D8D26
secondary
#606DBF
accent
#59E444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8D26

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

Preview Lab → · Contrast checker → · Palette generator →

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