#7F31AD#7F31AD

#7F31AD is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.4% C 0.191 H 309.8°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7F31AD
RGBrgb(127, 49, 173)
HSLhsl(278, 56%, 44%)
HSVhsv(278, 72%, 68%)
CMYKcmyk(26.6%, 71.7%, 0%, 32.2%)
CIE-LABlab(37.35, 53.92, -51.84)
CIE-LCHlch(37.35, 74.80, 316.13°)
OKLaboklab(48.38% 0.1224 -0.1468)
OKLCHoklch(48.38% 0.191 309.8)
XYZxyz(17.3920, 9.7261, 40.4882)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31AD #5FAD31
analogous
#4131AD #7F31AD #AD319D
triadic
#7F31AD #AD7F31 #31AD7F
tetradic
#7F31AD #AD4131 #5FAD31 #319DAD
square
#7F31AD #AD4131 #5FAD31 #319DAD
split-complementary
#7F31AD #9DAD31 #31AD41
monochromatic
#39164E #5C237D #7F31AD #9E4ECD #B87EDA

Accessibility & contrast

On white

7.13
#7F31AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7F31AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F31AD
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31AD#FFFFFF#000000##FFFFFF
##7F31AD1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B1
Deuteranopia (green-blind)
#1859AA
Tritanopia (blue-blind)
#784D6C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f31ad;
/* rgb */ color: rgb(127, 49, 173);
/* oklch */ color: oklch(48.4% 0.191 309.8);
Tailwind
colors: {
  custom: {
    50: '#a870c6',
    500: '#7f31ad',
    950: '#000000',
  },
}
SCSS
$custom: #7f31ad;
$custom-light: #a870c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31ad",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 277.742,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48379,
    "c": 0.1911,
    "h": 309.8
  },
  "luminance": 0.09726
}

Semantic roles & 50–950 ramp

primary
#7F31AD
secondary
#93C377
accent
#DF4980
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F31AD

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

Preview Lab → · Contrast checker → · Palette generator →

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