#731EA7#731EA7

#731EA7 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.5% C 0.202 H 307.9°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#731EA7
RGBrgb(115, 30, 167)
HSLhsl(277, 70%, 39%)
HSVhsv(277, 82%, 65%)
CMYKcmyk(31.1%, 82%, 0%, 34.5%)
CIE-LABlab(32.62, 57.64, -56.00)
CIE-LCHlch(32.62, 80.36, 315.83°)
OKLaboklab(44.55% 0.1241 -0.1593)
OKLCHoklch(44.55% 0.202 307.9)
XYZxyz(14.5081, 7.3636, 37.2088)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731EA7 #52A71E
analogous
#2E1EA7 #731EA7 #A71E96
triadic
#731EA7 #A7731E #1EA773
tetradic
#731EA7 #A72E1E #52A71E #1E96A7
square
#731EA7 #A72E1E #52A71E #1E96A7
split-complementary
#731EA7 #96A71E #1EA72E
monochromatic
#2C0B3F #4F1573 #731EA7 #962AD9 #B05DE2

Accessibility & contrast

On white

8.49
#731EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#731EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731EA7
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731EA7#FFFFFF#000000##FFFFFF
##731EA71.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#6A4364
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #731ea7;
/* rgb */ color: rgb(115, 30, 167);
/* oklch */ color: oklch(44.5% 0.202 307.9);
Tailwind
colors: {
  custom: {
    50: '#a166c2',
    500: '#731ea7',
    950: '#000000',
  },
}
SCSS
$custom: #731ea7;
$custom-light: #a166c2;
$custom-dark: #000000;
JSON
{
  "hex": "#731ea7",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 277.226,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44547,
    "c": 0.20192,
    "h": 307.9
  },
  "luminance": 0.07363
}

Semantic roles & 50–950 ramp

primary
#731EA7
secondary
#83C65B
accent
#EC3B7F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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