#731D8E#731D8E

#731D8E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.180 H 316.4°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#731D8E
RGBrgb(115, 29, 142)
HSLhsl(286, 66%, 34%)
HSVhsv(286, 80%, 56%)
CMYKcmyk(19%, 79.6%, 0%, 44.3%)
CIE-LABlab(30.59, 52.73, -44.05)
CIE-LCHlch(30.59, 68.71, 320.12°)
OKLaboklab(42.52% 0.1304 -0.1242)
OKLCHoklch(42.52% 0.18 316.4)
XYZxyz(12.3913, 6.4771, 26.1834)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D8E #388E1D
analogous
#3A1D8E #731D8E #8E1D70
triadic
#731D8E #8E731D #1D8E73
tetradic
#731D8E #8E3A1D #388E1D #1D708E
square
#731D8E #8E3A1D #388E1D #1D708E
split-complementary
#731D8E #708E1D #1D8E3A
monochromatic
#210828 #4A135B #731D8E #9C27C1 #B84BDA

Accessibility & contrast

On white

9.15
#731D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#731D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731D8E
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D8E#FFFFFF#000000##FFFFFF
##731D8E1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #731d8e;
/* rgb */ color: rgb(115, 29, 142);
/* oklch */ color: oklch(42.5% 0.180 316.4);
Tailwind
colors: {
  custom: {
    50: '#9f64b0',
    500: '#731d8e',
    950: '#000000',
  },
}
SCSS
$custom: #731d8e;
$custom-light: #9f64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#731d8e",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 285.664,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42519,
    "c": 0.1801,
    "h": 316.4
  },
  "luminance": 0.06477
}

Semantic roles & 50–950 ramp

primary
#731D8E
secondary
#66BD4A
accent
#E93F67
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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