#7E31A9#7E31A9

#7E31A9 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.0% C 0.187 H 310.6°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#7E31A9
RGBrgb(126, 49, 169)
HSLhsl(279, 55%, 43%)
HSVhsv(279, 71%, 66%)
CMYKcmyk(25.4%, 71%, 0%, 33.7%)
CIE-LABlab(36.92, 52.83, -50.14)
CIE-LCHlch(36.92, 72.84, 316.49°)
OKLaboklab(47.96% 0.1216 -0.1418)
OKLCHoklch(47.96% 0.187 310.6)
XYZxyz(16.8626, 9.4972, 38.4733)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31A9 #5CA931
analogous
#4231A9 #7E31A9 #A93198
triadic
#7E31A9 #A97E31 #31A97E
tetradic
#7E31A9 #A94231 #5CA931 #3198A9
square
#7E31A9 #A94231 #5CA931 #3198A9
split-complementary
#7E31A9 #98A931 #31A942
monochromatic
#37154A #5B237A #7E31A9 #9E4CCB #B77CD9

Accessibility & contrast

On white

7.24
#7E31A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7E31A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E31A9
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31A9#FFFFFF#000000##FFFFFF
##7E31A91.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AC
Deuteranopia (green-blind)
#1D58A6
Tritanopia (blue-blind)
#784B6A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e31a9;
/* rgb */ color: rgb(126, 49, 169);
/* oklch */ color: oklch(48.0% 0.187 310.6);
Tailwind
colors: {
  custom: {
    50: '#a770c3',
    500: '#7e31a9',
    950: '#000000',
  },
}
SCSS
$custom: #7e31a9;
$custom-light: #a770c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31a9",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 278.5,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4796,
    "c": 0.1868,
    "h": 310.6
  },
  "luminance": 0.09497
}

Semantic roles & 50–950 ramp

primary
#7E31A9
secondary
#90C174
accent
#DE497F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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