#7F17A0#7F17A0

#7F17A0 is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.2% C 0.205 H 315.7°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7F17A0
RGBrgb(127, 23, 160)
HSLhsl(286, 75%, 36%)
HSVhsv(286, 86%, 63%)
CMYKcmyk(20.6%, 85.6%, 0%, 37.3%)
CIE-LABlab(33.27, 60.22, -50.63)
CIE-LCHlch(33.27, 78.67, 319.95°)
OKLaboklab(45.21% 0.1467 -0.143)
OKLCHoklch(45.21% 0.205 315.7)
XYZxyz(15.4029, 7.6635, 33.9187)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F17A0 #38A017
analogous
#3A17A0 #7F17A0 #A0177C
triadic
#7F17A0 #A07F17 #17A07F
tetradic
#7F17A0 #A03A17 #38A017 #177CA0
square
#7F17A0 #A03A17 #38A017 #177CA0
split-complementary
#7F17A0 #7CA017 #17A03A
monochromatic
#2A0835 #550F6A #7F17A0 #A91FD6 #C04CE5

Accessibility & contrast

On white

8.29
#7F17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7F17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F17A0
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F17A0#FFFFFF#000000##FFFFFF
##7F17A01.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#10519D
Tritanopia (blue-blind)
#7C3B5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f17a0;
/* rgb */ color: rgb(127, 23, 160);
/* oklch */ color: oklch(45.2% 0.205 315.7);
Tailwind
colors: {
  custom: {
    50: '#a965bd',
    500: '#7f17a0',
    950: '#000000',
  },
}
SCSS
$custom: #7f17a0;
$custom-light: #a965bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f17a0",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 285.547,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45209,
    "c": 0.20492,
    "h": 315.7
  },
  "luminance": 0.07663
}

Semantic roles & 50–950 ramp

primary
#7F17A0
secondary
#69C74C
accent
#F13663
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7F17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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