#7F31BE#7F31BE

#7F31BE is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.7% C 0.208 H 305.0°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#7F31BE
RGBrgb(127, 49, 190)
HSLhsl(273, 59%, 47%)
HSVhsv(273, 74%, 75%)
CMYKcmyk(33.2%, 74.2%, 0%, 25.5%)
CIE-LABlab(38.60, 57.75, -59.87)
CIE-LCHlch(38.60, 83.18, 313.97°)
OKLaboklab(49.66% 0.1195 -0.1704)
OKLCHoklch(49.66% 0.208 305)
XYZxyz(19.1429, 10.4265, 49.7092)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F31BE #70BE31
analogous
#3831BE #7F31BE #BE31B7
triadic
#7F31BE #BE7F31 #31BE7F
tetradic
#7F31BE #BE3831 #70BE31 #31B7BE
square
#7F31BE #BE3831 #70BE31 #31B7BE
split-complementary
#7F31BE #B7BE31 #31BE38
monochromatic
#3E185D #5E248D #7F31BE #9D58D4 #B989E1

Accessibility & contrast

On white

6.81
#7F31BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7F31BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F31BE
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F31BE#FFFFFF#000000##FFFFFF
##7F31BE1.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C2
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#735475
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f31be;
/* rgb */ color: rgb(127, 49, 190);
/* oklch */ color: oklch(49.7% 0.208 305.0);
Tailwind
colors: {
  custom: {
    50: '#aa71d2',
    500: '#7f31be',
    950: '#000000',
  },
}
SCSS
$custom: #7f31be;
$custom-light: #aa71d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f31be",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 273.191,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49658,
    "c": 0.20807,
    "h": 305
  },
  "luminance": 0.10426
}

Semantic roles & 50–950 ramp

primary
#7F31BE
secondary
#A1CA80
accent
#E2468C
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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