#7F31C1#7F31C1

#7F31C1 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.9% C 0.211 H 304.3°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7F31C1
RGBrgb(127, 49, 193)
HSLhsl(273, 60%, 47%)
HSVhsv(273, 75%, 76%)
CMYKcmyk(34.2%, 74.6%, 0%, 24.3%)
CIE-LABlab(38.83, 58.44, -61.25)
CIE-LCHlch(38.83, 84.66, 313.65°)
OKLaboklab(49.89% 0.1188 -0.1744)
OKLCHoklch(49.89% 0.211 304.3)
XYZxyz(19.4741, 10.5590, 51.4539)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31C1 #73C131
analogous
#3731C1 #7F31C1 #C131BB
triadic
#7F31C1 #C17F31 #31C17F
tetradic
#7F31C1 #C13731 #73C131 #31BBC1
square
#7F31C1 #C13731 #73C131 #31BBC1
split-complementary
#7F31C1 #BBC131 #31C137
monochromatic
#3F185F #5F2590 #7F31C1 #9D5AD5 #BA8BE2

Accessibility & contrast

On white

6.75
#7F31C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7F31C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31C1
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31C1#FFFFFF#000000##FFFFFF
##7F31C11.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC5
Deuteranopia (green-blind)
#005BBE
Tritanopia (blue-blind)
#725577
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f31c1;
/* rgb */ color: rgb(127, 49, 193);
/* oklch */ color: oklch(49.9% 0.211 304.3);
Tailwind
colors: {
  custom: {
    50: '#aa71d5',
    500: '#7f31c1',
    950: '#000000',
  },
}
SCSS
$custom: #7f31c1;
$custom-light: #aa71d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31c1",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 272.5,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49893,
    "c": 0.21107,
    "h": 304.3
  },
  "luminance": 0.10559
}

Semantic roles & 50–950 ramp

primary
#7F31C1
secondary
#A4CC82
accent
#E3458D
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F31C1

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

Preview Lab → · Contrast checker → · Palette generator →

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