#7E31BD#7E31BD

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

Color values

HEX#7E31BD
RGBrgb(126, 49, 189)
HSLhsl(273, 59%, 47%)
HSVhsv(273, 74%, 74%)
CMYKcmyk(33.3%, 74.1%, 0%, 25.9%)
CIE-LABlab(38.39, 57.34, -59.63)
CIE-LCHlch(38.39, 82.72, 313.88°)
OKLaboklab(49.46% 0.1183 -0.1697)
OKLCHoklch(49.46% 0.207 304.9)
XYZxyz(18.8857, 10.3065, 49.1287)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31BD #70BD31
analogous
#3831BD #7E31BD #BD31B6
triadic
#7E31BD #BD7E31 #31BD7E
tetradic
#7E31BD #BD3831 #70BD31 #31B6BD
square
#7E31BD #BD3831 #70BD31 #31B6BD
split-complementary
#7E31BD #B6BD31 #31BD38
monochromatic
#3D185C #5E248C #7E31BD #9C58D4 #B988E0

Accessibility & contrast

On white

6.86
#7E31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7E31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31BD
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31BD#FFFFFF#000000##FFFFFF
##7E31BD1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#725375
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e31bd;
/* rgb */ color: rgb(126, 49, 189);
/* oklch */ color: oklch(49.5% 0.207 304.9);
Tailwind
colors: {
  custom: {
    50: '#a971d2',
    500: '#7e31bd',
    950: '#000000',
  },
}
SCSS
$custom: #7e31bd;
$custom-light: #a971d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31bd",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 273,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49458,
    "c": 0.20685,
    "h": 304.9
  },
  "luminance": 0.10306
}

Semantic roles & 50–950 ramp

primary
#7E31BD
secondary
#A1CA80
accent
#E2468C
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7E31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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