#731F80#731F80

#731F80 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.165 H 321.9°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#731F80
RGBrgb(115, 31, 128)
HSLhsl(292, 61%, 31%)
HSVhsv(292, 76%, 50%)
CMYKcmyk(10.2%, 75.8%, 0%, 49.8%)
CIE-LABlab(29.87, 49.26, -36.48)
CIE-LCHlch(29.87, 61.30, 323.48°)
OKLaboklab(41.71% 0.1303 -0.102)
OKLCHoklch(41.71% 0.165 321.9)
XYZxyz(11.4561, 6.1840, 21.0081)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F80 #2C801F
analogous
#421F80 #731F80 #801F5C
triadic
#731F80 #80731F #1F8073
tetradic
#731F80 #80421F #2C801F #1F5C80
square
#731F80 #80421F #2C801F #1F5C80
split-complementary
#731F80 #5C801F #1F8042
monochromatic
#1A071D #47134F #731F80 #9F2BB1 #C047D2

Accessibility & contrast

On white

9.39
#731F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#731F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F80
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F80#FFFFFF#000000##FFFFFF
##731F801.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#2C497E
Tritanopia (blue-blind)
#74314E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #731f80;
/* rgb */ color: rgb(115, 31, 128);
/* oklch */ color: oklch(41.7% 0.165 321.9);
Tailwind
colors: {
  custom: {
    50: '#9f64a5',
    500: '#731f80',
    950: '#000000',
  },
}
SCSS
$custom: #731f80;
$custom-light: #9f64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#731f80",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 291.959,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41707,
    "c": 0.16544,
    "h": 321.9
  },
  "luminance": 0.06183
}

Semantic roles & 50–950 ramp

primary
#731F80
secondary
#56B348
accent
#E44459
background
#FAF6FA
surface
#F3EBF4
border
#CDC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731F80

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

Preview Lab → · Contrast checker → · Palette generator →

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