#7E17A1#7E17A1

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

Color values

HEX#7E17A1
RGBrgb(126, 23, 161)
HSLhsl(285, 75%, 36%)
HSVhsv(285, 86%, 63%)
CMYKcmyk(21.7%, 85.7%, 0%, 36.9%)
CIE-LABlab(33.18, 60.25, -51.38)
CIE-LCHlch(33.18, 79.18, 319.54°)
OKLaboklab(45.14% 0.1452 -0.1453)
OKLCHoklch(45.14% 0.205 315)
XYZxyz(15.3425, 7.6222, 34.3744)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E17A1 #3AA117
analogous
#3917A1 #7E17A1 #A1177F
triadic
#7E17A1 #A17E17 #17A17E
tetradic
#7E17A1 #A13917 #3AA117 #177FA1
square
#7E17A1 #A13917 #3AA117 #177FA1
split-complementary
#7E17A1 #7FA117 #17A139
monochromatic
#2A0836 #540F6B #7E17A1 #A81FD7 #BF4DE6

Accessibility & contrast

On white

8.32
#7E17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E17A1
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E17A1#FFFFFF#000000##FFFFFF
##7E17A11.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#09509E
Tritanopia (blue-blind)
#7B3B5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e17a1;
/* rgb */ color: rgb(126, 23, 161);
/* oklch */ color: oklch(45.1% 0.205 315.0);
Tailwind
colors: {
  custom: {
    50: '#a865be',
    500: '#7e17a1',
    950: '#000000',
  },
}
SCSS
$custom: #7e17a1;
$custom-light: #a865be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e17a1",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 284.783,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45139,
    "c": 0.20544,
    "h": 315
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#7E17A1
secondary
#6CC74C
accent
#F23666
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7E17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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