#9D8326#9D8326

#9D8326 is a mid, moderate yellow. Relative luminance 0.235; OKLCH L 61.8% C 0.112 H 92.7°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9D8326
RGBrgb(157, 131, 38)
HSLhsl(47, 61%, 38%)
HSVhsv(47, 76%, 62%)
CMYKcmyk(0%, 16.6%, 75.8%, 38.4%)
CIE-LABlab(55.63, -0.02, 50.94)
CIE-LCHlch(55.63, 50.94, 90.02°)
OKLaboklab(61.75% -0.0053 0.1122)
OKLCHoklch(61.75% 0.112 92.7)
XYZxyz(22.3720, 23.5420, 5.1990)
Luminance0.2354 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8326 #26409D
analogous
#9D4726 #9D8326 #7B9D26
triadic
#9D8326 #269D83 #83269D
tetradic
#9D8326 #269D47 #26409D #9D267B
square
#9D8326 #269D47 #26409D #9D267B
split-complementary
#9D8326 #267B9D #47269D
monochromatic
#3A310E #6C5A1A #9D8326 #CEAC33 #D9C064

Accessibility & contrast

On white

3.68
#9D8326 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#9D8326 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8326
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8326#FFFFFF#000000##000000
##9D83261.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928116
Deuteranopia (green-blind)
#98882B
Tritanopia (blue-blind)
#AA7871
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9d8326;
/* rgb */ color: rgb(157, 131, 38);
/* oklch */ color: oklch(61.8% 0.112 92.7);
Tailwind
colors: {
  custom: {
    50: '#bea667',
    500: '#9d8326',
    950: '#000000',
  },
}
SCSS
$custom: #9d8326;
$custom-light: #bea667;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8326",
  "rgb": {
    "r": 157,
    "g": 131,
    "b": 38
  },
  "hsl": {
    "h": 46.891,
    "s": 61.026,
    "l": 38.235
  },
  "oklch": {
    "l": 0.61754,
    "c": 0.11229,
    "h": 92.7
  },
  "luminance": 0.23541
}

Semantic roles & 50–950 ramp

primary
#9D8326
secondary
#6075BF
accent
#67E444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8326

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

Preview Lab → · Contrast checker → · Palette generator →

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