#7E31B9#7E31B9

#7E31B9 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.203 H 305.9°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7E31B9
RGBrgb(126, 49, 185)
HSLhsl(274, 58%, 46%)
HSVhsv(274, 74%, 73%)
CMYKcmyk(31.9%, 73.5%, 0%, 27.5%)
CIE-LABlab(38.08, 56.42, -57.77)
CIE-LCHlch(38.08, 80.75, 314.33°)
OKLaboklab(49.15% 0.1191 -0.1642)
OKLCHoklch(49.15% 0.203 305.9)
XYZxyz(18.4575, 10.1352, 46.8735)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31B9 #6CB931
analogous
#3A31B9 #7E31B9 #B931B0
triadic
#7E31B9 #B97E31 #31B97E
tetradic
#7E31B9 #B93A31 #6CB931 #31B0B9
square
#7E31B9 #B93A31 #6CB931 #31B0B9
split-complementary
#7E31B9 #B0B931 #31B93A
monochromatic
#3C1758 #5D2489 #7E31B9 #9C55D2 #B886DF

Accessibility & contrast

On white

6.94
#7E31B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7E31B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31B9
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31B9#FFFFFF#000000##FFFFFF
##7E31B91.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#735272
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e31b9;
/* rgb */ color: rgb(126, 49, 185);
/* oklch */ color: oklch(49.1% 0.203 305.9);
Tailwind
colors: {
  custom: {
    50: '#a970cf',
    500: '#7e31b9',
    950: '#000000',
  },
}
SCSS
$custom: #7e31b9;
$custom-light: #a970cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31b9",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 273.971,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49149,
    "c": 0.20284,
    "h": 305.9
  },
  "luminance": 0.10135
}

Semantic roles & 50–950 ramp

primary
#7E31B9
secondary
#9EC87D
accent
#E1468A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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