#7E31BF#7E31BF

#7E31BF is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.6% C 0.209 H 304.4°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#7E31BF
RGBrgb(126, 49, 191)
HSLhsl(273, 59%, 47%)
HSVhsv(273, 74%, 75%)
CMYKcmyk(34%, 74.3%, 0%, 25.1%)
CIE-LABlab(38.54, 57.80, -60.55)
CIE-LCHlch(38.54, 83.71, 313.67°)
OKLaboklab(49.61% 0.1179 -0.1724)
OKLCHoklch(49.61% 0.209 304.4)
XYZxyz(19.1043, 10.3939, 50.2799)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31BF #72BF31
analogous
#3731BF #7E31BF #BF31B9
triadic
#7E31BF #BF7E31 #31BF7E
tetradic
#7E31BF #BF3731 #72BF31 #31B9BF
square
#7E31BF #BF3731 #72BF31 #31B9BF
split-complementary
#7E31BF #B9BF31 #31BF37
monochromatic
#3E185E #5E258E #7E31BF #9C59D4 #B98AE1

Accessibility & contrast

On white

6.82
#7E31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7E31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31BF
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31BF#FFFFFF#000000##FFFFFF
##7E31BF1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#005BBC
Tritanopia (blue-blind)
#715476
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e31bf;
/* rgb */ color: rgb(126, 49, 191);
/* oklch */ color: oklch(49.6% 0.209 304.4);
Tailwind
colors: {
  custom: {
    50: '#a971d3',
    500: '#7e31bf',
    950: '#000000',
  },
}
SCSS
$custom: #7e31bf;
$custom-light: #a971d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31bf",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 272.535,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49614,
    "c": 0.20885,
    "h": 304.4
  },
  "luminance": 0.10394
}

Semantic roles & 50–950 ramp

primary
#7E31BF
secondary
#A3CB81
accent
#E2458D
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7E31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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