#9D8423#9D8423

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

Color values

HEX#9D8423
RGBrgb(157, 132, 35)
HSLhsl(48, 64%, 38%)
HSVhsv(48, 78%, 62%)
CMYKcmyk(0%, 15.9%, 77.7%, 38.4%)
CIE-LABlab(55.88, -0.71, 52.31)
CIE-LCHlch(55.88, 52.32, 90.77°)
OKLaboklab(61.95% -0.0076 0.1145)
OKLCHoklch(61.95% 0.115 93.8)
XYZxyz(22.4605, 23.7933, 4.9993)
Luminance0.2379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8423 #233C9D
analogous
#9D4723 #9D8423 #799D23
triadic
#9D8423 #239D84 #84239D
tetradic
#9D8423 #239D47 #233C9D #9D2379
square
#9D8423 #239D47 #233C9D #9D2379
split-complementary
#9D8423 #23799D #47239D
monochromatic
#39300D #6B5A18 #9D8423 #CFAE2E #DBC25F

Accessibility & contrast

On white

3.65
#9D8423 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8423#FFFFFF#000000##000000
##9D84231.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938210
Deuteranopia (green-blind)
#998929
Tritanopia (blue-blind)
#AA7971
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9d8423;
/* rgb */ color: rgb(157, 132, 35);
/* oklch */ color: oklch(61.9% 0.115 93.8);
Tailwind
colors: {
  custom: {
    50: '#bea766',
    500: '#9d8423',
    950: '#000000',
  },
}
SCSS
$custom: #9d8423;
$custom-light: #bea766;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8423",
  "rgb": {
    "r": 157,
    "g": 132,
    "b": 35
  },
  "hsl": {
    "h": 47.705,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.61948,
    "c": 0.11473,
    "h": 93.8
  },
  "luminance": 0.23792
}

Semantic roles & 50–950 ramp

primary
#9D8423
secondary
#5C70C0
accent
#63E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8423

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

Preview Lab → · Contrast checker → · Palette generator →

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