#7F31C9#7F31C9

#7F31C9 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.219 H 302.3°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#7F31C9
RGBrgb(127, 49, 201)
HSLhsl(271, 61%, 49%)
HSVhsv(271, 76%, 79%)
CMYKcmyk(36.8%, 75.6%, 0%, 21.2%)
CIE-LABlab(39.45, 60.29, -64.90)
CIE-LCHlch(39.45, 88.58, 312.89°)
OKLaboklab(50.53% 0.1171 -0.1851)
OKLCHoklch(50.53% 0.219 302.3)
XYZxyz(20.3908, 10.9256, 56.2816)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31C9 #7BC931
analogous
#3331C9 #7F31C9 #C931C7
triadic
#7F31C9 #C97F31 #31C97F
tetradic
#7F31C9 #C93331 #7BC931 #31C7C9
square
#7F31C9 #C93331 #7BC931 #31C7C9
split-complementary
#7F31C9 #C7C931 #31C933
monochromatic
#411967 #602598 #7F31C9 #9D5FD8 #BB90E4

Accessibility & contrast

On white

6.59
#7F31C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7F31C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31C9
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31C9#FFFFFF#000000##FFFFFF
##7F31C91.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCD
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#6F587B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f31c9;
/* rgb */ color: rgb(127, 49, 201);
/* oklch */ color: oklch(50.5% 0.219 302.3);
Tailwind
colors: {
  custom: {
    50: '#ab71da',
    500: '#7f31c9',
    950: '#000000',
  },
}
SCSS
$custom: #7f31c9;
$custom-light: #ab71da;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31c9",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 270.789,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5053,
    "c": 0.21905,
    "h": 302.3
  },
  "luminance": 0.10926
}

Semantic roles & 50–950 ramp

primary
#7F31C9
secondary
#AACF87
accent
#E44492
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F31C9

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

Preview Lab → · Contrast checker → · Palette generator →

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