#9D8328#9D8328

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

Color values

HEX#9D8328
RGBrgb(157, 131, 40)
HSLhsl(47, 59%, 39%)
HSVhsv(47, 75%, 62%)
CMYKcmyk(0%, 16.6%, 74.5%, 38.4%)
CIE-LABlab(55.64, 0.08, 50.16)
CIE-LCHlch(55.64, 50.16, 89.91°)
OKLaboklab(61.77% -0.0048 0.1109)
OKLCHoklch(61.77% 0.111 92.5)
XYZxyz(22.4052, 23.5552, 5.3736)
Luminance0.2355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8328 #28429D
analogous
#9D4828 #9D8328 #7C9D28
triadic
#9D8328 #289D83 #83289D
tetradic
#9D8328 #289D48 #28429D #9D287C
square
#9D8328 #289D48 #28429D #9D287C
split-complementary
#9D8328 #287C9D #48289D
monochromatic
#3B320F #6C5A1C #9D8328 #CCAB36 #D8BF67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8328#FFFFFF#000000##000000
##9D83281.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)
#92811A
Deuteranopia (green-blind)
#98882D
Tritanopia (blue-blind)
#AA7871
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9d8328;
/* rgb */ color: rgb(157, 131, 40);
/* oklch */ color: oklch(61.8% 0.111 92.5);
Tailwind
colors: {
  custom: {
    50: '#bea668',
    500: '#9d8328',
    950: '#000000',
  },
}
SCSS
$custom: #9d8328;
$custom-light: #bea668;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8328",
  "rgb": {
    "r": 157,
    "g": 131,
    "b": 40
  },
  "hsl": {
    "h": 46.667,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.61769,
    "c": 0.11102,
    "h": 92.5
  },
  "luminance": 0.23554
}

Semantic roles & 50–950 ramp

primary
#9D8328
secondary
#6277BE
accent
#68E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8328

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

Preview Lab → · Contrast checker → · Palette generator →

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