#7E17B4#7E17B4

#7E17B4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.7% C 0.221 H 309.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7E17B4
RGBrgb(126, 23, 180)
HSLhsl(279, 77%, 40%)
HSVhsv(279, 87%, 71%)
CMYKcmyk(30%, 87.2%, 0%, 29.4%)
CIE-LABlab(34.69, 64.03, -60.33)
CIE-LCHlch(34.69, 87.98, 316.71°)
OKLaboklab(46.65% 0.14 -0.1716)
OKLCHoklch(46.65% 0.221 309.2)
XYZxyz(17.1471, 8.3440, 43.8784)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E17B4 #4DB417
analogous
#2F17B4 #7E17B4 #B4179C
triadic
#7E17B4 #B47E17 #17B47E
tetradic
#7E17B4 #B42F17 #4DB417 #179CB4
square
#7E17B4 #B42F17 #4DB417 #179CB4
split-complementary
#7E17B4 #9CB417 #17B42F
monochromatic
#320947 #58107E #7E17B4 #A225E3 #B95BEA

Accessibility & contrast

On white

7.87
#7E17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E17B4
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E17B4#FFFFFF#000000##FFFFFF
##7E17B41.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#76456B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e17b4;
/* rgb */ color: rgb(126, 23, 180);
/* oklch */ color: oklch(46.7% 0.221 309.2);
Tailwind
colors: {
  custom: {
    50: '#a966cb',
    500: '#7e17b4',
    950: '#000000',
  },
}
SCSS
$custom: #7e17b4;
$custom-light: #a966cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e17b4",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 279.363,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46653,
    "c": 0.22148,
    "h": 309.2
  },
  "luminance": 0.08344
}

Semantic roles & 50–950 ramp

primary
#7E17B4
secondary
#81CE59
accent
#F43476
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7E17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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