#7F31C0#7F31C0

#7F31C0 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.8% C 0.210 H 304.5°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7F31C0
RGBrgb(127, 49, 192)
HSLhsl(273, 59%, 47%)
HSVhsv(273, 74%, 75%)
CMYKcmyk(33.9%, 74.5%, 0%, 24.7%)
CIE-LABlab(38.75, 58.21, -60.79)
CIE-LCHlch(38.75, 84.17, 313.76°)
OKLaboklab(49.81% 0.119 -0.1731)
OKLCHoklch(49.81% 0.21 304.5)
XYZxyz(19.3630, 10.5145, 50.8684)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31C0 #72C031
analogous
#3731C0 #7F31C0 #C031BA
triadic
#7F31C0 #C07F31 #31C07F
tetradic
#7F31C0 #C03731 #72C031 #31BAC0
square
#7F31C0 #C03731 #72C031 #31BAC0
split-complementary
#7F31C0 #BAC031 #31C037
monochromatic
#3E185E #5F258F #7F31C0 #9D59D5 #BA8AE1

Accessibility & contrast

On white

6.77
#7F31C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7F31C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31C0
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31C0#FFFFFF#000000##FFFFFF
##7F31C01.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#735576
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f31c0;
/* rgb */ color: rgb(127, 49, 192);
/* oklch */ color: oklch(49.8% 0.210 304.5);
Tailwind
colors: {
  custom: {
    50: '#aa71d4',
    500: '#7f31c0',
    950: '#000000',
  },
}
SCSS
$custom: #7f31c0;
$custom-light: #aa71d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31c0",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 272.727,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49814,
    "c": 0.21006,
    "h": 304.5
  },
  "luminance": 0.10514
}

Semantic roles & 50–950 ramp

primary
#7F31C0
secondary
#A3CB82
accent
#E3458D
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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