#7E17A0#7E17A0

#7E17A0 is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.1% C 0.205 H 315.3°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#7E17A0
RGBrgb(126, 23, 160)
HSLhsl(285, 75%, 36%)
HSVhsv(285, 86%, 63%)
CMYKcmyk(21.2%, 85.6%, 0%, 37.3%)
CIE-LABlab(33.11, 60.05, -50.90)
CIE-LCHlch(33.11, 78.72, 319.71°)
OKLaboklab(45.06% 0.1455 -0.1439)
OKLCHoklch(45.06% 0.205 315.3)
XYZxyz(15.2547, 7.5871, 33.9118)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E17A0 #39A017
analogous
#3917A0 #7E17A0 #A0177D
triadic
#7E17A0 #A07E17 #17A07E
tetradic
#7E17A0 #A03917 #39A017 #177DA0
square
#7E17A0 #A03917 #39A017 #177DA0
split-complementary
#7E17A0 #7DA017 #17A039
monochromatic
#2A0835 #540F6A #7E17A0 #A81FD6 #BF4CE5

Accessibility & contrast

On white

8.34
#7E17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7E17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E17A0
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E17A0#FFFFFF#000000##FFFFFF
##7E17A01.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A3
Deuteranopia (green-blind)
#0D509D
Tritanopia (blue-blind)
#7B3B5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e17a0;
/* rgb */ color: rgb(126, 23, 160);
/* oklch */ color: oklch(45.1% 0.205 315.3);
Tailwind
colors: {
  custom: {
    50: '#a864bd',
    500: '#7e17a0',
    950: '#000000',
  },
}
SCSS
$custom: #7e17a0;
$custom-light: #a864bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e17a0",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 285.109,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45062,
    "c": 0.2046,
    "h": 315.3
  },
  "luminance": 0.07586
}

Semantic roles & 50–950 ramp

primary
#7E17A0
secondary
#6AC74C
accent
#F13665
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7E17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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