#731EA1#731EA1

#731EA1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 44.1% C 0.196 H 309.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#731EA1
RGBrgb(115, 30, 161)
HSLhsl(279, 69%, 37%)
HSVhsv(279, 81%, 63%)
CMYKcmyk(28.6%, 81.4%, 0%, 36.9%)
CIE-LABlab(32.14, 56.35, -53.16)
CIE-LCHlch(32.14, 77.47, 316.67°)
OKLaboklab(44.06% 0.1257 -0.1509)
OKLCHoklch(44.06% 0.196 309.8)
XYZxyz(13.9662, 7.1469, 34.3551)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731EA1 #4CA11E
analogous
#311EA1 #731EA1 #A11E8E
triadic
#731EA1 #A1731E #1EA173
tetradic
#731EA1 #A1311E #4CA11E #1E8EA1
square
#731EA1 #A1311E #4CA11E #1E8EA1
split-complementary
#731EA1 #8EA11E #1EA131
monochromatic
#290B3A #4E146D #731EA1 #9828D5 #B159E0

Accessibility & contrast

On white

8.64
#731EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#731EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731EA1
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731EA1#FFFFFF#000000##FFFFFF
##731EA11.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#004D9E
Tritanopia (blue-blind)
#6C4060
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #731ea1;
/* rgb */ color: rgb(115, 30, 161);
/* oklch */ color: oklch(44.1% 0.196 309.8);
Tailwind
colors: {
  custom: {
    50: '#a065be',
    500: '#731ea1',
    950: '#000000',
  },
}
SCSS
$custom: #731ea1;
$custom-light: #a065be;
$custom-dark: #000000;
JSON
{
  "hex": "#731ea1",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 278.931,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44061,
    "c": 0.1964,
    "h": 309.8
  },
  "luminance": 0.07147
}

Semantic roles & 50–950 ramp

primary
#731EA1
secondary
#7DC457
accent
#EB3C7A
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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