#731E8A#731E8A

#731E8A is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.175 H 317.9°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#731E8A
RGBrgb(115, 30, 138)
HSLhsl(287, 64%, 33%)
HSVhsv(287, 78%, 54%)
CMYKcmyk(16.7%, 78.3%, 0%, 45.9%)
CIE-LABlab(30.42, 51.58, -41.84)
CIE-LCHlch(30.42, 66.42, 320.95°)
OKLaboklab(42.31% 0.1301 -0.1177)
OKLCHoklch(42.31% 0.175 317.9)
XYZxyz(12.1213, 6.4089, 24.6384)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731E8A #358A1E
analogous
#3D1E8A #731E8A #8A1E6B
triadic
#731E8A #8A731E #1E8A73
tetradic
#731E8A #8A3D1E #358A1E #1E6B8A
square
#731E8A #8A3D1E #358A1E #1E6B8A
split-complementary
#731E8A #6B8A1E #1E8A3D
monochromatic
#1F0825 #491358 #731E8A #9D29BC #BA4BD8

Accessibility & contrast

On white

9.20
#731E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731E8A
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731E8A#FFFFFF#000000##FFFFFF
##731E8A1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#224A88
Tritanopia (blue-blind)
#723553
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #731e8a;
/* rgb */ color: rgb(115, 30, 138);
/* oklch */ color: oklch(42.3% 0.175 317.9);
Tailwind
colors: {
  custom: {
    50: '#9f64ad',
    500: '#731e8a',
    950: '#000000',
  },
}
SCSS
$custom: #731e8a;
$custom-light: #9f64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#731e8a",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 287.222,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42313,
    "c": 0.17547,
    "h": 317.9
  },
  "luminance": 0.06408
}

Semantic roles & 50–950 ramp

primary
#731E8A
secondary
#62BA4A
accent
#E74164
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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