#7E31BA#7E31BA

#7E31BA is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.204 H 305.7°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#7E31BA
RGBrgb(126, 49, 186)
HSLhsl(274, 58%, 46%)
HSVhsv(274, 74%, 73%)
CMYKcmyk(32.3%, 73.7%, 0%, 27.1%)
CIE-LABlab(38.16, 56.65, -58.23)
CIE-LCHlch(38.16, 81.24, 314.21°)
OKLaboklab(49.23% 0.1189 -0.1656)
OKLCHoklch(49.23% 0.204 305.7)
XYZxyz(18.5635, 10.1776, 47.4314)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31BA #6DBA31
analogous
#3A31BA #7E31BA #BA31B1
triadic
#7E31BA #BA7E31 #31BA7E
tetradic
#7E31BA #BA3A31 #6DBA31 #31B1BA
square
#7E31BA #BA3A31 #6DBA31 #31B1BA
split-complementary
#7E31BA #B1BA31 #31BA3A
monochromatic
#3C1759 #5D248A #7E31BA #9C56D2 #B886DF

Accessibility & contrast

On white

6.92
#7E31BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7E31BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31BA
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31BA#FFFFFF#000000##FFFFFF
##7E31BA1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#735273
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e31ba;
/* rgb */ color: rgb(126, 49, 186);
/* oklch */ color: oklch(49.2% 0.204 305.7);
Tailwind
colors: {
  custom: {
    50: '#a971d0',
    500: '#7e31ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e31ba;
$custom-light: #a971d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31ba",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 273.723,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49225,
    "c": 0.20384,
    "h": 305.7
  },
  "luminance": 0.10177
}

Semantic roles & 50–950 ramp

primary
#7E31BA
secondary
#9FC97E
accent
#E2468A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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