#9D8223#9D8223

#9D8223 is a mid, moderate yellow. Relative luminance 0.233; OKLCH L 61.5% C 0.113 H 92.2°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#9D8223
RGBrgb(157, 130, 35)
HSLhsl(47, 64%, 38%)
HSVhsv(47, 78%, 62%)
CMYKcmyk(0%, 17.2%, 77.7%, 38.4%)
CIE-LABlab(55.34, 0.41, 51.81)
CIE-LCHlch(55.34, 51.81, 89.55°)
OKLaboklab(61.52% -0.0044 0.1134)
OKLCHoklch(61.52% 0.113 92.2)
XYZxyz(22.1919, 23.2561, 4.9098)
Luminance0.2326 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8223 #233E9D
analogous
#9D4523 #9D8223 #7B9D23
triadic
#9D8223 #239D82 #82239D
tetradic
#9D8223 #239D45 #233E9D #9D237B
square
#9D8223 #239D45 #233E9D #9D237B
split-complementary
#9D8223 #237B9D #45239D
monochromatic
#392F0D #6B5918 #9D8223 #CFAB2E #DBC05F

Accessibility & contrast

On white

3.72
#9D8223 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#9D8223 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8223
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8223#FFFFFF#000000##000000
##9D82231.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918011
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#AA7770
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9d8223;
/* rgb */ color: rgb(157, 130, 35);
/* oklch */ color: oklch(61.5% 0.113 92.2);
Tailwind
colors: {
  custom: {
    50: '#bea666',
    500: '#9d8223',
    950: '#000000',
  },
}
SCSS
$custom: #9d8223;
$custom-light: #bea666;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8223",
  "rgb": {
    "r": 157,
    "g": 130,
    "b": 35
  },
  "hsl": {
    "h": 46.721,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.61518,
    "c": 0.11348,
    "h": 92.2
  },
  "luminance": 0.23255
}

Semantic roles & 50–950 ramp

primary
#9D8223
secondary
#5C72C0
accent
#66E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8223

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

Preview Lab → · Contrast checker → · Palette generator →

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