#7F217D#7F217D

#7F217D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.166 H 328.9°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#7F217D
RGBrgb(127, 33, 125)
HSLhsl(301, 59%, 31%)
HSVhsv(301, 74%, 50%)
CMYKcmyk(0%, 74%, 1.6%, 50.2%)
CIE-LABlab(31.99, 50.74, -31.10)
CIE-LCHlch(31.99, 59.51, 328.50°)
OKLaboklab(43.56% 0.1425 -0.086)
OKLCHoklch(43.56% 0.166 328.9)
XYZxyz(12.9978, 7.0814, 20.0803)
Luminance0.0708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F217D #217F23
analogous
#52217F #7F217D #7F214E
triadic
#7F217D #7D7F21 #217D7F
tetradic
#7F217D #7F5221 #217F23 #214E7F
square
#7F217D #7F5221 #217F23 #214E7F
split-complementary
#7F217D #4E7F21 #217F52
monochromatic
#1E081D #4E144D #7F217D #B02EAD #D04ACD

Accessibility & contrast

On white

8.69
#7F217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7F217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F217D
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F217D#FFFFFF#000000##FFFFFF
##7F217D1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134380
Deuteranopia (green-blind)
#3B507B
Tritanopia (blue-blind)
#832E4D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f217d;
/* rgb */ color: rgb(127, 33, 125);
/* oklch */ color: oklch(43.6% 0.166 328.9);
Tailwind
colors: {
  custom: {
    50: '#a767a3',
    500: '#7f217d',
    950: '#000000',
  },
}
SCSS
$custom: #7f217d;
$custom-light: #a767a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f217d",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 301.277,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43563,
    "c": 0.16645,
    "h": 328.9
  },
  "luminance": 0.0708
}

Semantic roles & 50–950 ramp

primary
#7F217D
secondary
#4AB24C
accent
#E24946
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F217D

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

Preview Lab → · Contrast checker → · Palette generator →

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