#7E31B6#7E31B6

#7E31B6 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.9% C 0.200 H 306.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#7E31B6
RGBrgb(126, 49, 182)
HSLhsl(275, 58%, 45%)
HSVhsv(275, 73%, 71%)
CMYKcmyk(30.8%, 73.1%, 0%, 28.6%)
CIE-LABlab(37.86, 55.74, -56.36)
CIE-LCHlch(37.86, 79.27, 314.68°)
OKLaboklab(48.92% 0.1196 -0.1601)
OKLCHoklch(48.92% 0.2 306.8)
XYZxyz(18.1442, 10.0098, 45.2231)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31B6 #69B631
analogous
#3B31B6 #7E31B6 #B631AB
triadic
#7E31B6 #B67E31 #31B67E
tetradic
#7E31B6 #B63B31 #69B631 #31ABB6
square
#7E31B6 #B63B31 #69B631 #31ABB6
split-complementary
#7E31B6 #ABB631 #31B63B
monochromatic
#3B1756 #5D2486 #7E31B6 #9C53D1 #B884DE

Accessibility & contrast

On white

7.00
#7E31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#7E31B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31B6
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31B6#FFFFFF#000000##FFFFFF
##7E31B61.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#745171
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e31b6;
/* rgb */ color: rgb(126, 49, 182);
/* oklch */ color: oklch(48.9% 0.200 306.8);
Tailwind
colors: {
  custom: {
    50: '#a870cd',
    500: '#7e31b6',
    950: '#000000',
  },
}
SCSS
$custom: #7e31b6;
$custom-light: #a870cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31b6",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 274.737,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4892,
    "c": 0.19983,
    "h": 306.8
  },
  "luminance": 0.1001
}

Semantic roles & 50–950 ramp

primary
#7E31B6
secondary
#9BC77C
accent
#E14788
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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