#9D8428#9D8428

#9D8428 is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 62.0% C 0.112 H 93.3°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#9D8428
RGBrgb(157, 132, 40)
HSLhsl(47, 59%, 39%)
HSVhsv(47, 75%, 62%)
CMYKcmyk(0%, 15.9%, 74.5%, 38.4%)
CIE-LABlab(55.91, -0.48, 50.42)
CIE-LCHlch(55.91, 50.42, 90.55°)
OKLaboklab(61.98% -0.0064 0.1115)
OKLCHoklch(61.98% 0.112 93.3)
XYZxyz(22.5401, 23.8251, 5.4186)
Luminance0.2382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8428 #28419D
analogous
#9D4928 #9D8428 #7B9D28
triadic
#9D8428 #289D84 #84289D
tetradic
#9D8428 #289D49 #28419D #9D287B
square
#9D8428 #289D49 #28419D #9D287B
split-complementary
#9D8428 #287B9D #49289D
monochromatic
#3B320F #6C5B1C #9D8428 #CCAC36 #D8C067

Accessibility & contrast

On white

3.64
#9D8428 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#9D8428 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8428
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8428#FFFFFF#000000##000000
##9D84281.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938219
Deuteranopia (green-blind)
#99892D
Tritanopia (blue-blind)
#AA7972
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9d8428;
/* rgb */ color: rgb(157, 132, 40);
/* oklch */ color: oklch(62.0% 0.112 93.3);
Tailwind
colors: {
  custom: {
    50: '#bea768',
    500: '#9d8428',
    950: '#000000',
  },
}
SCSS
$custom: #9d8428;
$custom-light: #bea768;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8428",
  "rgb": {
    "r": 157,
    "g": 132,
    "b": 40
  },
  "hsl": {
    "h": 47.179,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.61984,
    "c": 0.11166,
    "h": 93.3
  },
  "luminance": 0.23824
}

Semantic roles & 50–950 ramp

primary
#9D8428
secondary
#6276BE
accent
#67E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8428

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

Preview Lab → · Contrast checker → · Palette generator →

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