#7E17C9#7E17C9

#7E17C9 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.4% C 0.240 H 303.7°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7E17C9
RGBrgb(126, 23, 201)
HSLhsl(275, 79%, 44%)
HSVhsv(275, 89%, 79%)
CMYKcmyk(37.3%, 88.6%, 0%, 21.2%)
CIE-LABlab(36.49, 68.39, -69.75)
CIE-LCHlch(36.49, 97.69, 314.44°)
OKLaboklab(48.44% 0.1329 -0.1992)
OKLCHoklch(48.44% 0.24 303.7)
XYZxyz(19.4507, 9.2655, 56.0107)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E17C9 #62C917
analogous
#2517C9 #7E17C9 #C917BB
triadic
#7E17C9 #C97E17 #17C97E
tetradic
#7E17C9 #C92517 #62C917 #17BBC9
square
#7E17C9 #C92517 #62C917 #17BBC9
split-complementary
#7E17C9 #BBC917 #17C925
monochromatic
#390A5B #5C1192 #7E17C9 #9D35E8 #B76CEE

Accessibility & contrast

On white

7.36
#7E17C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7E17C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E17C9
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E17C9#FFFFFF#000000##FFFFFF
##7E17C91.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CD
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#6E4F77
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e17c9;
/* rgb */ color: rgb(126, 23, 201);
/* oklch */ color: oklch(48.4% 0.240 303.7);
Tailwind
colors: {
  custom: {
    50: '#ab67db',
    500: '#7e17c9',
    950: '#000000',
  },
}
SCSS
$custom: #7e17c9;
$custom-light: #ab67db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e17c9",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 201
  },
  "hsl": {
    "h": 274.719,
    "s": 79.464,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48444,
    "c": 0.23951,
    "h": 303.7
  },
  "luminance": 0.09265
}

Semantic roles & 50–950 ramp

primary
#7E17C9
secondary
#95D468
accent
#F63284
background
#FBF6FD
surface
#F6EBFB
border
#D0C6D4
text
#110715
muted
#807A83

Preview Lab

Preview with #7E17C9

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

Preview Lab → · Contrast checker → · Palette generator →

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