#7F178D#7F178D

#7F178D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.8% C 0.189 H 322.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7F178D
RGBrgb(127, 23, 141)
HSLhsl(293, 72%, 32%)
HSVhsv(293, 84%, 55%)
CMYKcmyk(9.9%, 83.7%, 0%, 44.7%)
CIE-LABlab(31.92, 56.67, -41.18)
CIE-LCHlch(31.92, 70.06, 323.99°)
OKLaboklab(43.83% 0.1502 -0.1153)
OKLCHoklch(43.83% 0.189 322.5)
XYZxyz(13.8660, 7.0487, 25.8243)
Luminance0.0705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F178D #258D17
analogous
#44178D #7F178D #8D1760
triadic
#7F178D #8D7F17 #178D7F
tetradic
#7F178D #8D4417 #258D17 #17608D
square
#7F178D #8D4417 #258D17 #17608D
split-complementary
#7F178D #608D17 #178D44
monochromatic
#200624 #500E58 #7F178D #AE20C2 #CD3FE0

Accessibility & contrast

On white

8.72
#7F178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7F178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F178D
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F178D#FFFFFF#000000##FFFFFF
##7F178D1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#2B4F8A
Tritanopia (blue-blind)
#813154
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f178d;
/* rgb */ color: rgb(127, 23, 141);
/* oklch */ color: oklch(43.8% 0.189 322.5);
Tailwind
colors: {
  custom: {
    50: '#a864af',
    500: '#7f178d',
    950: '#000000',
  },
}
SCSS
$custom: #7f178d;
$custom-light: #a864af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f178d",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 292.881,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43831,
    "c": 0.18935,
    "h": 322.5
  },
  "luminance": 0.07048
}

Semantic roles & 50–950 ramp

primary
#7F178D
secondary
#4FC040
accent
#EF394F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F178D

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

Preview Lab → · Contrast checker → · Palette generator →

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