#7F31C6#7F31C6

#7F31C6 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.3% C 0.216 H 303.0°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7F31C6
RGBrgb(127, 49, 198)
HSLhsl(271, 60%, 48%)
HSVhsv(271, 75%, 78%)
CMYKcmyk(35.9%, 75.3%, 0%, 22.4%)
CIE-LABlab(39.22, 59.59, -63.54)
CIE-LCHlch(39.22, 87.11, 313.17°)
OKLaboklab(50.29% 0.1177 -0.1811)
OKLCHoklch(50.29% 0.216 303)
XYZxyz(20.0413, 10.7859, 54.4412)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31C6 #78C631
analogous
#3431C6 #7F31C6 #C631C2
triadic
#7F31C6 #C67F31 #31C67F
tetradic
#7F31C6 #C63431 #78C631 #31C2C6
square
#7F31C6 #C63431 #78C631 #31C2C6
split-complementary
#7F31C6 #C2C631 #31C634
monochromatic
#401964 #602595 #7F31C6 #9D5DD7 #BB8EE3

Accessibility & contrast

On white

6.65
#7F31C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7F31C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31C6
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31C6#FFFFFF#000000##FFFFFF
##7F31C61.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#005CC3
Tritanopia (blue-blind)
#70577A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f31c6;
/* rgb */ color: rgb(127, 49, 198);
/* oklch */ color: oklch(50.3% 0.216 303.0);
Tailwind
colors: {
  custom: {
    50: '#aa71d8',
    500: '#7f31c6',
    950: '#000000',
  },
}
SCSS
$custom: #7f31c6;
$custom-light: #aa71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31c6",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 271.409,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50289,
    "c": 0.21605,
    "h": 303
  },
  "luminance": 0.10786
}

Semantic roles & 50–950 ramp

primary
#7F31C6
secondary
#A8CE85
accent
#E34490
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F31C6

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

Preview Lab → · Contrast checker → · Palette generator →

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