#7F31C2#7F31C2

#7F31C2 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.212 H 304.0°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7F31C2
RGBrgb(127, 49, 194)
HSLhsl(272, 60%, 48%)
HSVhsv(272, 75%, 76%)
CMYKcmyk(34.5%, 74.7%, 0%, 23.9%)
CIE-LABlab(38.90, 58.67, -61.71)
CIE-LCHlch(38.90, 85.15, 313.55°)
OKLaboklab(49.97% 0.1186 -0.1758)
OKLCHoklch(49.97% 0.212 304)
XYZxyz(19.5861, 10.6037, 52.0434)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31C2 #74C231
analogous
#3731C2 #7F31C2 #C231BC
triadic
#7F31C2 #C27F31 #31C27F
tetradic
#7F31C2 #C23731 #74C231 #31BCC2
square
#7F31C2 #C23731 #74C231 #31BCC2
split-complementary
#7F31C2 #BCC231 #31C237
monochromatic
#3F1860 #5F2591 #7F31C2 #9D5BD6 #BA8CE2

Accessibility & contrast

On white

6.73
#7F31C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7F31C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31C2
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31C2#FFFFFF#000000##FFFFFF
##7F31C21.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#725578
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f31c2;
/* rgb */ color: rgb(127, 49, 194);
/* oklch */ color: oklch(50.0% 0.212 304.0);
Tailwind
colors: {
  custom: {
    50: '#aa71d5',
    500: '#7f31c2',
    950: '#000000',
  },
}
SCSS
$custom: #7f31c2;
$custom-light: #aa71d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31c2",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 272.276,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49972,
    "c": 0.21207,
    "h": 304
  },
  "luminance": 0.10604
}

Semantic roles & 50–950 ramp

primary
#7F31C2
secondary
#A5CC83
accent
#E3458E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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