#7E31BE#7E31BE

#7E31BE is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.208 H 304.6°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7E31BE
RGBrgb(126, 49, 190)
HSLhsl(273, 59%, 47%)
HSVhsv(273, 74%, 75%)
CMYKcmyk(33.7%, 74.2%, 0%, 25.5%)
CIE-LABlab(38.46, 57.57, -60.09)
CIE-LCHlch(38.46, 83.22, 313.77°)
OKLaboklab(49.54% 0.1181 -0.1711)
OKLCHoklch(49.54% 0.208 304.6)
XYZxyz(18.9946, 10.3500, 49.7023)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31BE #71BE31
analogous
#3831BE #7E31BE #BE31B8
triadic
#7E31BE #BE7E31 #31BE7E
tetradic
#7E31BE #BE3831 #71BE31 #31B8BE
square
#7E31BE #BE3831 #71BE31 #31B8BE
split-complementary
#7E31BE #B8BE31 #31BE38
monochromatic
#3D185D #5E248D #7E31BE #9C58D4 #B989E1

Accessibility & contrast

On white

6.84
#7E31BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7E31BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31BE
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31BE#FFFFFF#000000##FFFFFF
##7E31BE1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e31be;
/* rgb */ color: rgb(126, 49, 190);
/* oklch */ color: oklch(49.5% 0.208 304.6);
Tailwind
colors: {
  custom: {
    50: '#a971d3',
    500: '#7e31be',
    950: '#000000',
  },
}
SCSS
$custom: #7e31be;
$custom-light: #a971d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31be",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 272.766,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49536,
    "c": 0.20785,
    "h": 304.6
  },
  "luminance": 0.1035
}

Semantic roles & 50–950 ramp

primary
#7E31BE
secondary
#A2CA80
accent
#E2468D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7E31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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