#7F31CE#7F31CE

#7F31CE is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.9% C 0.224 H 301.1°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7F31CE
RGBrgb(127, 49, 206)
HSLhsl(270, 62%, 50%)
HSVhsv(270, 76%, 81%)
CMYKcmyk(38.3%, 76.2%, 0%, 19.2%)
CIE-LABlab(39.86, 61.46, -67.14)
CIE-LCHlch(39.86, 91.02, 312.47°)
OKLaboklab(50.94% 0.1158 -0.1917)
OKLCHoklch(50.94% 0.224 301.1)
XYZxyz(20.9886, 11.1647, 59.4298)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31CE #80CE31
analogous
#3131CE #7F31CE #CE31CE
triadic
#7F31CE #CE7F31 #31CE7F
tetradic
#7F31CE #CE3131 #80CE31 #31CECE
square
#7F31CE #CE3131 #80CE31 #31CECE
split-complementary
#7F31CE #CECE31 #31CE31
monochromatic
#42196B #61259D #7F31CE #9E62DA #BC94E6

Accessibility & contrast

On white

6.50
#7F31CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7F31CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31CE
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31CE#FFFFFF#000000##FFFFFF
##7F31CE1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#005DCB
Tritanopia (blue-blind)
#6D5A7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f31ce;
/* rgb */ color: rgb(127, 49, 206);
/* oklch */ color: oklch(50.9% 0.224 301.1);
Tailwind
colors: {
  custom: {
    50: '#ab72de',
    500: '#7f31ce',
    950: '#000000',
  },
}
SCSS
$custom: #7f31ce;
$custom-light: #ab72de;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31ce",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 206
  },
  "hsl": {
    "h": 269.809,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.50936,
    "c": 0.22402,
    "h": 301.1
  },
  "luminance": 0.11165
}

Semantic roles & 50–950 ramp

primary
#7F31CE
secondary
#AED18A
accent
#E54394
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F31CE

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

Preview Lab → · Contrast checker → · Palette generator →

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