#7F31CF#7F31CF

#7F31CF is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 51.0% C 0.225 H 300.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#7F31CF
RGBrgb(127, 49, 207)
HSLhsl(270, 62%, 50%)
HSVhsv(270, 76%, 81%)
CMYKcmyk(38.6%, 76.3%, 0%, 18.8%)
CIE-LABlab(39.94, 61.69, -67.59)
CIE-LCHlch(39.94, 91.51, 312.39°)
OKLaboklab(51.02% 0.1156 -0.1931)
OKLCHoklch(51.02% 0.225 300.9)
XYZxyz(21.1104, 11.2135, 60.0716)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31CF #81CF31
analogous
#3132CF #7F31CF #CE31CF
triadic
#7F31CF #CF7F31 #31CF7F
tetradic
#7F31CF #CF3132 #81CF31 #31CFCE
square
#7F31CF #CF3132 #81CF31 #31CFCE
split-complementary
#7F31CF #CFCE31 #32CF31
monochromatic
#42196C #61259E #7F31CF #9E63DB #BD94E6

Accessibility & contrast

On white

6.48
#7F31CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7F31CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31CF
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31CF#FFFFFF#000000##FFFFFF
##7F31CF1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#6D5B7F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f31cf;
/* rgb */ color: rgb(127, 49, 207);
/* oklch */ color: oklch(51.0% 0.225 300.9);
Tailwind
colors: {
  custom: {
    50: '#ab72df',
    500: '#7f31cf',
    950: '#000000',
  },
}
SCSS
$custom: #7f31cf;
$custom-light: #ab72df;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31cf",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 269.62,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51018,
    "c": 0.22502,
    "h": 300.9
  },
  "luminance": 0.11214
}

Semantic roles & 50–950 ramp

primary
#7F31CF
secondary
#AED18B
accent
#E54395
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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