#7E31B7#7E31B7

#7E31B7 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.0% C 0.201 H 306.5°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#7E31B7
RGBrgb(126, 49, 183)
HSLhsl(274, 58%, 45%)
HSVhsv(274, 73%, 72%)
CMYKcmyk(31.1%, 73.2%, 0%, 28.2%)
CIE-LABlab(37.93, 55.97, -56.83)
CIE-LCHlch(37.93, 79.76, 314.56°)
OKLaboklab(49% 0.1194 -0.1615)
OKLCHoklch(49% 0.201 306.5)
XYZxyz(18.2479, 10.0513, 45.7693)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E31B7 #6AB731
analogous
#3B31B7 #7E31B7 #B731AD
triadic
#7E31B7 #B77E31 #31B77E
tetradic
#7E31B7 #B73B31 #6AB731 #31ADB7
square
#7E31B7 #B73B31 #6AB731 #31ADB7
split-complementary
#7E31B7 #ADB731 #31B73B
monochromatic
#3C1756 #5D2487 #7E31B7 #9C54D1 #B884DE

Accessibility & contrast

On white

6.98
#7E31B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7E31B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E31B7
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E31B7#FFFFFF#000000##FFFFFF
##7E31B71.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e31b7;
/* rgb */ color: rgb(126, 49, 183);
/* oklch */ color: oklch(49.0% 0.201 306.5);
Tailwind
colors: {
  custom: {
    50: '#a870cd',
    500: '#7e31b7',
    950: '#000000',
  },
}
SCSS
$custom: #7e31b7;
$custom-light: #a870cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e31b7",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 274.478,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48996,
    "c": 0.20083,
    "h": 306.5
  },
  "luminance": 0.10051
}

Semantic roles & 50–950 ramp

primary
#7E31B7
secondary
#9CC87C
accent
#E14788
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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