#9D731F#9D731F

#9D731F is a mid, moderate orange. Relative luminance 0.195; OKLCH L 58.3% C 0.109 H 80.0°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9D731F
RGBrgb(157, 115, 31)
HSLhsl(40, 67%, 37%)
HSVhsv(40, 80%, 62%)
CMYKcmyk(0%, 26.8%, 80.3%, 38.4%)
CIE-LABlab(51.30, 8.70, 49.57)
CIE-LCHlch(51.30, 50.32, 80.04°)
OKLaboklab(58.34% 0.019 0.1077)
OKLCHoklch(58.34% 0.109 80)
XYZxyz(20.2841, 19.5301, 3.9974)
Luminance0.1953 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D731F #1F499D
analogous
#9D341F #9D731F #889D1F
triadic
#9D731F #1F9D73 #731F9D
tetradic
#9D731F #1F9D34 #1F499D #9D1F88
square
#9D731F #1F9D34 #1F499D #9D1F88
split-complementary
#9D731F #1F889D #341F9D
monochromatic
#37280B #6A4E15 #9D731F #D09829 #DEB158

Accessibility & contrast

On white

4.28
#9D731F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#9D731F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D731F
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D731F#FFFFFF#000000##000000
##9D731F1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#84740F
Deuteranopia (green-blind)
#8D7E23
Tritanopia (blue-blind)
#AB6763
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9d731f;
/* rgb */ color: rgb(157, 115, 31);
/* oklch */ color: oklch(58.3% 0.109 80.0);
Tailwind
colors: {
  custom: {
    50: '#bf9b62',
    500: '#9d731f',
    950: '#000000',
  },
}
SCSS
$custom: #9d731f;
$custom-light: #bf9b62;
$custom-dark: #000000;
JSON
{
  "hex": "#9d731f",
  "rgb": {
    "r": 157,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 40,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.58338,
    "c": 0.10935,
    "h": 80
  },
  "luminance": 0.19528
}

Semantic roles & 50–950 ramp

primary
#9D731F
secondary
#567AC2
accent
#77EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130E05
muted
#827E7A

Preview Lab

Preview with #9D731F

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

Preview Lab → · Contrast checker → · Palette generator →

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