#7F31AA#7F31AA

#7F31AA is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.2% C 0.188 H 310.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7F31AA
RGBrgb(127, 49, 170)
HSLhsl(279, 55%, 43%)
HSVhsv(279, 71%, 67%)
CMYKcmyk(25.3%, 71.2%, 0%, 33.3%)
CIE-LABlab(37.14, 53.26, -50.39)
CIE-LCHlch(37.14, 73.32, 316.58°)
OKLaboklab(48.16% 0.1228 -0.1425)
OKLCHoklch(48.16% 0.188 310.7)
XYZxyz(17.1050, 9.6113, 38.9765)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31AA #5CAA31
analogous
#4331AA #7F31AA #AA3198
triadic
#7F31AA #AA7F31 #31AA7F
tetradic
#7F31AA #AA4331 #5CAA31 #3198AA
square
#7F31AA #AA4331 #5CAA31 #3198AA
split-complementary
#7F31AA #98AA31 #31AA43
monochromatic
#38164B #5C237A #7F31AA #9E4DCC #B87CD9

Accessibility & contrast

On white

7.19
#7F31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7F31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F31AA
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31AA#FFFFFF#000000##FFFFFF
##7F31AA1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#1E59A7
Tritanopia (blue-blind)
#794B6A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f31aa;
/* rgb */ color: rgb(127, 49, 170);
/* oklch */ color: oklch(48.2% 0.188 310.7);
Tailwind
colors: {
  custom: {
    50: '#a870c4',
    500: '#7f31aa',
    950: '#000000',
  },
}
SCSS
$custom: #7f31aa;
$custom-light: #a870c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31aa",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 278.678,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48162,
    "c": 0.18812,
    "h": 310.7
  },
  "luminance": 0.09611
}

Semantic roles & 50–950 ramp

primary
#7F31AA
secondary
#90C275
accent
#DF497E
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F31AA

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

Preview Lab → · Contrast checker → · Palette generator →

#7F31AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva