#7F17A1#7F17A1

#7F17A1 is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.3% C 0.206 H 315.4°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7F17A1
RGBrgb(127, 23, 161)
HSLhsl(285, 75%, 36%)
HSVhsv(285, 86%, 63%)
CMYKcmyk(21.1%, 85.7%, 0%, 36.9%)
CIE-LABlab(33.35, 60.41, -51.11)
CIE-LCHlch(33.35, 79.13, 319.77°)
OKLaboklab(45.29% 0.1465 -0.1445)
OKLCHoklch(45.29% 0.206 315.4)
XYZxyz(15.4908, 7.6986, 34.3813)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F17A1 #39A117
analogous
#3A17A1 #7F17A1 #A1177E
triadic
#7F17A1 #A17F17 #17A17F
tetradic
#7F17A1 #A13A17 #39A117 #177EA1
square
#7F17A1 #A13A17 #39A117 #177EA1
split-complementary
#7F17A1 #7EA117 #17A13A
monochromatic
#2B0836 #550F6B #7F17A1 #A91FD7 #C04DE6

Accessibility & contrast

On white

8.27
#7F17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7F17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F17A1
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F17A1#FFFFFF#000000##FFFFFF
##7F17A11.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#0D519E
Tritanopia (blue-blind)
#7C3B5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f17a1;
/* rgb */ color: rgb(127, 23, 161);
/* oklch */ color: oklch(45.3% 0.206 315.4);
Tailwind
colors: {
  custom: {
    50: '#a965be',
    500: '#7f17a1',
    950: '#000000',
  },
}
SCSS
$custom: #7f17a1;
$custom-light: #a965be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f17a1",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 285.217,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45285,
    "c": 0.20576,
    "h": 315.4
  },
  "luminance": 0.07698
}

Semantic roles & 50–950 ramp

primary
#7F17A1
secondary
#6BC74C
accent
#F23664
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7F17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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