#731B8E#731B8E

#731B8E is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.182 H 316.5°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#731B8E
RGBrgb(115, 27, 142)
HSLhsl(286, 68%, 33%)
HSVhsv(286, 81%, 56%)
CMYKcmyk(19%, 81%, 0%, 44.3%)
CIE-LABlab(30.36, 53.39, -44.42)
CIE-LCHlch(30.36, 69.45, 320.24°)
OKLaboklab(42.36% 0.1321 -0.1252)
OKLCHoklch(42.36% 0.182 316.5)
XYZxyz(12.3439, 6.3822, 26.1676)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731B8E #368E1B
analogous
#391B8E #731B8E #8E1B6F
triadic
#731B8E #8E731B #1B8E73
tetradic
#731B8E #8E391B #368E1B #1B6F8E
square
#731B8E #8E391B #368E1B #1B6F8E
split-complementary
#731B8E #6F8E1B #1B8E39
monochromatic
#200727 #49115B #731B8E #9D25C1 #B947DC

Accessibility & contrast

On white

9.23
#731B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#731B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731B8E
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731B8E#FFFFFF#000000##FFFFFF
##731B8E1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#1B4A8C
Tritanopia (blue-blind)
#713655
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #731b8e;
/* rgb */ color: rgb(115, 27, 142);
/* oklch */ color: oklch(42.4% 0.182 316.5);
Tailwind
colors: {
  custom: {
    50: '#9f63b0',
    500: '#731b8e',
    950: '#000000',
  },
}
SCSS
$custom: #731b8e;
$custom-light: #9f63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#731b8e",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 285.913,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42358,
    "c": 0.18205,
    "h": 316.5
  },
  "luminance": 0.06382
}

Semantic roles & 50–950 ramp

primary
#731B8E
secondary
#63BE47
accent
#EB3D66
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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