#7F31AE#7F31AE

#7F31AE is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.5% C 0.192 H 309.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7F31AE
RGBrgb(127, 49, 174)
HSLhsl(277, 56%, 44%)
HSVhsv(277, 72%, 68%)
CMYKcmyk(27%, 71.8%, 0%, 31.8%)
CIE-LABlab(37.42, 54.14, -52.32)
CIE-LCHlch(37.42, 75.29, 315.98°)
OKLaboklab(48.45% 0.1222 -0.1482)
OKLCHoklch(48.45% 0.192 309.5)
XYZxyz(17.4892, 9.7650, 40.9997)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31AE #60AE31
analogous
#4031AE #7F31AE #AE319E
triadic
#7F31AE #AE7F31 #31AE7F
tetradic
#7F31AE #AE4031 #60AE31 #319EAE
square
#7F31AE #AE4031 #60AE31 #319EAE
split-complementary
#7F31AE #9EAE31 #31AE40
monochromatic
#39164E #5C247E #7F31AE #9E4FCD #B87FDB

Accessibility & contrast

On white

7.11
#7F31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F31AE
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31AE#FFFFFF#000000##FFFFFF
##7F31AE1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#1659AB
Tritanopia (blue-blind)
#784D6C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f31ae;
/* rgb */ color: rgb(127, 49, 174);
/* oklch */ color: oklch(48.5% 0.192 309.5);
Tailwind
colors: {
  custom: {
    50: '#a870c7',
    500: '#7f31ae',
    950: '#000000',
  },
}
SCSS
$custom: #7f31ae;
$custom-light: #a870c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31ae",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 277.44,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48451,
    "c": 0.1921,
    "h": 309.5
  },
  "luminance": 0.09765
}

Semantic roles & 50–950 ramp

primary
#7F31AE
secondary
#94C477
accent
#DF4881
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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