#9D8427#9D8427

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

Color values

HEX#9D8427
RGBrgb(157, 132, 39)
HSLhsl(47, 60%, 38%)
HSVhsv(47, 75%, 62%)
CMYKcmyk(0%, 15.9%, 75.2%, 38.4%)
CIE-LABlab(55.91, -0.53, 50.81)
CIE-LCHlch(55.91, 50.82, 90.59°)
OKLaboklab(61.98% -0.0066 0.1121)
OKLCHoklch(61.98% 0.112 93.4)
XYZxyz(22.5233, 23.8184, 5.3301)
Luminance0.2382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8427 #27409D
analogous
#9D4927 #9D8427 #7B9D27
triadic
#9D8427 #279D84 #84279D
tetradic
#9D8427 #279D49 #27409D #9D277B
square
#9D8427 #279D49 #27409D #9D277B
split-complementary
#9D8427 #277B9D #49279D
monochromatic
#3B320F #6C5B1B #9D8427 #CDAC35 #D9C066

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8427#FFFFFF#000000##000000
##9D84271.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)
#938218
Deuteranopia (green-blind)
#99892C
Tritanopia (blue-blind)
#AA7972
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9d8427;
/* rgb */ color: rgb(157, 132, 39);
/* oklch */ color: oklch(62.0% 0.112 93.4);
Tailwind
colors: {
  custom: {
    50: '#bea768',
    500: '#9d8427',
    950: '#000000',
  },
}
SCSS
$custom: #9d8427;
$custom-light: #bea768;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8427",
  "rgb": {
    "r": 157,
    "g": 132,
    "b": 39
  },
  "hsl": {
    "h": 47.288,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.61976,
    "c": 0.11231,
    "h": 93.4
  },
  "luminance": 0.23817
}

Semantic roles & 50–950 ramp

primary
#9D8427
secondary
#6175BF
accent
#66E344
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8427

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

Preview Lab → · Contrast checker → · Palette generator →

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