#731F82#731F82

#731F82 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.167 H 321.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#731F82
RGBrgb(115, 31, 130)
HSLhsl(291, 61%, 32%)
HSVhsv(291, 76%, 51%)
CMYKcmyk(11.5%, 76.2%, 0%, 49%)
CIE-LABlab(30.00, 49.65, -37.52)
CIE-LCHlch(30.00, 62.23, 322.92°)
OKLaboklab(41.84% 0.1301 -0.1051)
OKLCHoklch(41.84% 0.167 321.1)
XYZxyz(11.5890, 6.2371, 21.7082)
Luminance0.0624 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F82 #2E821F
analogous
#421F82 #731F82 #821F60
triadic
#731F82 #82731F #1F8273
tetradic
#731F82 #82421F #2E821F #1F6082
square
#731F82 #82421F #2E821F #1F6082
split-complementary
#731F82 #60821F #1F8242
monochromatic
#1C071F #471351 #731F82 #9F2BB3 #BE48D3

Accessibility & contrast

On white

9.34
#731F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#731F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F82
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F82#FFFFFF#000000##FFFFFF
##731F821.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#2B4A80
Tritanopia (blue-blind)
#74324F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #731f82;
/* rgb */ color: rgb(115, 31, 130);
/* oklch */ color: oklch(41.8% 0.167 321.1);
Tailwind
colors: {
  custom: {
    50: '#9f64a7',
    500: '#731f82',
    950: '#000000',
  },
}
SCSS
$custom: #731f82;
$custom-light: #9f64a7;
$custom-dark: #000000;
JSON
{
  "hex": "#731f82",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 290.909,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41843,
    "c": 0.16722,
    "h": 321.1
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

primary
#731F82
secondary
#58B548
accent
#E5435C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731F82

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

Preview Lab → · Contrast checker → · Palette generator →

#731F82 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva