#7F31C4#7F31C4

#7F31C4 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.1% C 0.214 H 303.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#7F31C4
RGBrgb(127, 49, 196)
HSLhsl(272, 60%, 48%)
HSVhsv(272, 75%, 77%)
CMYKcmyk(35.2%, 75%, 0%, 23.1%)
CIE-LABlab(39.06, 59.13, -62.63)
CIE-LCHlch(39.06, 86.13, 313.36°)
OKLaboklab(50.13% 0.1182 -0.1785)
OKLCHoklch(50.13% 0.214 303.5)
XYZxyz(19.8122, 10.6942, 53.2343)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31C4 #76C431
analogous
#3631C4 #7F31C4 #C431BF
triadic
#7F31C4 #C47F31 #31C47F
tetradic
#7F31C4 #C43631 #76C431 #31BFC4
square
#7F31C4 #C43631 #76C431 #31BFC4
split-complementary
#7F31C4 #BFC431 #31C436
monochromatic
#401962 #5F2593 #7F31C4 #9D5CD6 #BA8DE2

Accessibility & contrast

On white

6.69
#7F31C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7F31C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31C4
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31C4#FFFFFF#000000##FFFFFF
##7F31C41.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#715679
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f31c4;
/* rgb */ color: rgb(127, 49, 196);
/* oklch */ color: oklch(50.1% 0.214 303.5);
Tailwind
colors: {
  custom: {
    50: '#aa71d7',
    500: '#7f31c4',
    950: '#000000',
  },
}
SCSS
$custom: #7f31c4;
$custom-light: #aa71d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31c4",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 271.837,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5013,
    "c": 0.21407,
    "h": 303.5
  },
  "luminance": 0.10694
}

Semantic roles & 50–950 ramp

primary
#7F31C4
secondary
#A6CD84
accent
#E3458F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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