#7E31BC#7E31BC

#7E31BC is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.4% C 0.206 H 305.1°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7E31BC
RGBrgb(126, 49, 188)
HSLhsl(273, 59%, 46%)
HSVhsv(273, 74%, 74%)
CMYKcmyk(33%, 73.9%, 0%, 26.3%)
CIE-LABlab(38.31, 57.11, -59.16)
CIE-LCHlch(38.31, 82.23, 313.99°)
OKLaboklab(49.38% 0.1185 -0.1683)
OKLCHoklch(49.38% 0.206 305.1)
XYZxyz(18.7776, 10.2632, 48.5590)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31BC #6FBC31
analogous
#3831BC #7E31BC #BC31B5
triadic
#7E31BC #BC7E31 #31BC7E
tetradic
#7E31BC #BC3831 #6FBC31 #31B5BC
square
#7E31BC #BC3831 #6FBC31 #31B5BC
split-complementary
#7E31BC #B5BC31 #31BC38
monochromatic
#3D185B #5D248B #7E31BC #9C57D3 #B888E0

Accessibility & contrast

On white

6.88
#7E31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7E31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31BC
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31BC#FFFFFF#000000##FFFFFF
##7E31BC1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#725374
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e31bc;
/* rgb */ color: rgb(126, 49, 188);
/* oklch */ color: oklch(49.4% 0.206 305.1);
Tailwind
colors: {
  custom: {
    50: '#a971d1',
    500: '#7e31bc',
    950: '#000000',
  },
}
SCSS
$custom: #7e31bc;
$custom-light: #a971d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31bc",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 273.237,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4938,
    "c": 0.20585,
    "h": 305.1
  },
  "luminance": 0.10263
}

Semantic roles & 50–950 ramp

primary
#7E31BC
secondary
#A0CA7F
accent
#E2468B
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7E31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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