#7F217A#7F217A

#7F217A is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.164 H 330.3°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#7F217A
RGBrgb(127, 33, 122)
HSLhsl(303, 59%, 31%)
HSVhsv(303, 74%, 50%)
CMYKcmyk(0%, 74%, 3.9%, 50.2%)
CIE-LABlab(31.82, 50.23, -29.48)
CIE-LCHlch(31.82, 58.24, 329.59°)
OKLaboklab(43.39% 0.1424 -0.0813)
OKLCHoklch(43.39% 0.164 330.3)
XYZxyz(12.8090, 7.0059, 19.0862)
Luminance0.0701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F217A #217F26
analogous
#55217F #7F217A #7F214B
triadic
#7F217A #7A7F21 #217A7F
tetradic
#7F217A #7F5521 #217F26 #214B7F
square
#7F217A #7F5521 #217F26 #214B7F
split-complementary
#7F217A #4B7F21 #217F55
monochromatic
#1E081D #4E144B #7F217A #B02EA9 #D04AC9

Accessibility & contrast

On white

8.75
#7F217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7F217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F217A
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F217A#FFFFFF#000000##FFFFFF
##7F217A1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437C
Deuteranopia (green-blind)
#3D4F78
Tritanopia (blue-blind)
#842D4B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f217a;
/* rgb */ color: rgb(127, 33, 122);
/* oklch */ color: oklch(43.4% 0.164 330.3);
Tailwind
colors: {
  custom: {
    50: '#a766a1',
    500: '#7f217a',
    950: '#000000',
  },
}
SCSS
$custom: #7f217a;
$custom-light: #a766a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f217a",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 303.191,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43385,
    "c": 0.16401,
    "h": 330.3
  },
  "luminance": 0.07005
}

Semantic roles & 50–950 ramp

primary
#7F217A
secondary
#4AB250
accent
#E24E46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F217A

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

Preview Lab → · Contrast checker → · Palette generator →

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