#731F8D#731F8D

#731F8D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.177 H 316.7°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#731F8D
RGBrgb(115, 31, 141)
HSLhsl(286, 64%, 34%)
HSVhsv(286, 78%, 55%)
CMYKcmyk(18.4%, 78%, 0%, 44.7%)
CIE-LABlab(30.76, 51.83, -43.16)
CIE-LCHlch(30.76, 67.45, 320.22°)
OKLaboklab(42.62% 0.1288 -0.1216)
OKLCHoklch(42.62% 0.177 316.7)
XYZxyz(12.3672, 6.5484, 25.8067)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F8D #398D1F
analogous
#3C1F8D #731F8D #8D1F70
triadic
#731F8D #8D731F #1F8D73
tetradic
#731F8D #8D3C1F #398D1F #1F708D
square
#731F8D #8D3C1F #398D1F #1F708D
split-complementary
#731F8D #708D1F #1F8D3C
monochromatic
#210929 #4A145B #731F8D #9C2ABF #B84ED8

Accessibility & contrast

On white

9.09
#731F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#731F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F8D
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F8D#FFFFFF#000000##FFFFFF
##731F8D1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#1F4B8B
Tritanopia (blue-blind)
#713755
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #731f8d;
/* rgb */ color: rgb(115, 31, 141);
/* oklch */ color: oklch(42.6% 0.177 316.7);
Tailwind
colors: {
  custom: {
    50: '#9f65af',
    500: '#731f8d',
    950: '#000000',
  },
}
SCSS
$custom: #731f8d;
$custom-light: #9f65af;
$custom-dark: #000000;
JSON
{
  "hex": "#731f8d",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 285.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42616,
    "c": 0.17713,
    "h": 316.7
  },
  "luminance": 0.06548
}

Semantic roles & 50–950 ramp

primary
#731F8D
secondary
#67BB4D
accent
#E74168
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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