#7D17A1#7D17A1

#7D17A1 is a dark, highly saturated purple. Relative luminance 0.075; OKLCH L 45.0% C 0.205 H 314.6°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#7D17A1
RGBrgb(125, 23, 161)
HSLhsl(284, 75%, 36%)
HSVhsv(284, 86%, 63%)
CMYKcmyk(22.4%, 85.7%, 0%, 36.9%)
CIE-LABlab(33.02, 60.08, -51.66)
CIE-LCHlch(33.02, 79.23, 319.31°)
OKLaboklab(44.99% 0.1439 -0.1461)
OKLCHoklch(44.99% 0.205 314.6)
XYZxyz(15.1958, 7.5465, 34.3675)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D17A1 #3BA117
analogous
#3817A1 #7D17A1 #A11780
triadic
#7D17A1 #A17D17 #17A17D
tetradic
#7D17A1 #A13817 #3BA117 #1780A1
square
#7D17A1 #A13817 #3BA117 #1780A1
split-complementary
#7D17A1 #80A117 #17A138
monochromatic
#2A0836 #530F6B #7D17A1 #A71FD7 #BE4DE6

Accessibility & contrast

On white

8.37
#7D17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7D17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D17A1
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D17A1#FFFFFF#000000##FFFFFF
##7D17A11.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#05509E
Tritanopia (blue-blind)
#7A3C5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d17a1;
/* rgb */ color: rgb(125, 23, 161);
/* oklch */ color: oklch(45.0% 0.205 314.6);
Tailwind
colors: {
  custom: {
    50: '#a764be',
    500: '#7d17a1',
    950: '#000000',
  },
}
SCSS
$custom: #7d17a1;
$custom-light: #a764be;
$custom-dark: #000000;
JSON
{
  "hex": "#7d17a1",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 284.348,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44993,
    "c": 0.20512,
    "h": 314.6
  },
  "luminance": 0.07546
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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