#7F217C#7F217C

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

Color values

HEX#7F217C
RGBrgb(127, 33, 124)
HSLhsl(302, 59%, 31%)
HSVhsv(302, 74%, 50%)
CMYKcmyk(0%, 74%, 2.4%, 50.2%)
CIE-LABlab(31.93, 50.57, -30.56)
CIE-LCHlch(31.93, 59.09, 328.85°)
OKLaboklab(43.5% 0.1425 -0.0844)
OKLCHoklch(43.5% 0.166 329.3)
XYZxyz(12.9342, 7.0559, 19.7456)
Luminance0.0706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F217C #217F24
analogous
#53217F #7F217C #7F214D
triadic
#7F217C #7C7F21 #217C7F
tetradic
#7F217C #7F5321 #217F24 #214D7F
square
#7F217C #7F5321 #217F24 #214D7F
split-complementary
#7F217C #4D7F21 #217F53
monochromatic
#1E081D #4E144D #7F217C #B02EAB #D04ACC

Accessibility & contrast

On white

8.71
#7F217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F217C
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F217C#FFFFFF#000000##FFFFFF
##7F217C1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437F
Deuteranopia (green-blind)
#3C507A
Tritanopia (blue-blind)
#842E4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f217c;
/* rgb */ color: rgb(127, 33, 124);
/* oklch */ color: oklch(43.5% 0.166 329.3);
Tailwind
colors: {
  custom: {
    50: '#a766a2',
    500: '#7f217c',
    950: '#000000',
  },
}
SCSS
$custom: #7f217c;
$custom-light: #a766a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f217c",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 301.915,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43503,
    "c": 0.16563,
    "h": 329.3
  },
  "luminance": 0.07055
}

Semantic roles & 50–950 ramp

primary
#7F217C
secondary
#4AB24D
accent
#E24B46
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F217C

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

Preview Lab → · Contrast checker → · Palette generator →

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