#731AC7#731AC7

#731AC7 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 47.1% C 0.234 H 299.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#731AC7
RGBrgb(115, 26, 199)
HSLhsl(271, 77%, 44%)
HSVhsv(271, 87%, 78%)
CMYKcmyk(42.2%, 86.9%, 0%, 22%)
CIE-LABlab(35.02, 65.87, -71.06)
CIE-LCHlch(35.02, 96.89, 312.83°)
OKLaboklab(47.06% 0.116 -0.2034)
OKLCHoklch(47.06% 0.234 299.7)
XYZxyz(17.7458, 8.5069, 54.7288)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731AC7 #6EC71A
analogous
#1C1AC7 #731AC7 #C71AC5
triadic
#731AC7 #C7731A #1AC773
tetradic
#731AC7 #C71C1A #6EC71A #1AC5C7
square
#731AC7 #C71C1A #6EC71A #1AC5C7
split-complementary
#731AC7 #C5C71A #1AC71C
monochromatic
#340C5B #541391 #731AC7 #9239E5 #B06FEC

Accessibility & contrast

On white

7.77
#731AC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#731AC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731AC7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731AC7#FFFFFF#000000##FFFFFF
##731AC71.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CB
Deuteranopia (green-blind)
#0051C4
Tritanopia (blue-blind)
#5E5076
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #731ac7;
/* rgb */ color: rgb(115, 26, 199);
/* oklch */ color: oklch(47.1% 0.234 299.7);
Tailwind
colors: {
  custom: {
    50: '#a466d9',
    500: '#731ac7',
    950: '#000000',
  },
}
SCSS
$custom: #731ac7;
$custom-light: #a466d9;
$custom-dark: #000000;
JSON
{
  "hex": "#731ac7",
  "rgb": {
    "r": 115,
    "g": 26,
    "b": 199
  },
  "hsl": {
    "h": 270.867,
    "s": 76.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47057,
    "c": 0.23422,
    "h": 299.7
  },
  "luminance": 0.08507
}

Semantic roles & 50–950 ramp

primary
#731AC7
secondary
#9DD26A
accent
#F33491
background
#FAF6FD
surface
#F4EBFB
border
#CEC6D4
text
#100715
muted
#7F7A83

Preview Lab

Preview with #731AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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