#7F217E#7F217E

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

Color values

HEX#7F217E
RGBrgb(127, 33, 126)
HSLhsl(301, 59%, 31%)
HSVhsv(301, 74%, 50%)
CMYKcmyk(0%, 74%, 0.8%, 50.2%)
CIE-LABlab(32.05, 50.92, -31.63)
CIE-LCHlch(32.05, 59.94, 328.15°)
OKLaboklab(43.62% 0.1425 -0.0875)
OKLCHoklch(43.62% 0.167 328.4)
XYZxyz(13.0620, 7.1070, 20.4184)
Luminance0.0711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F217E #217F22
analogous
#51217F #7F217E #7F214F
triadic
#7F217E #7E7F21 #217E7F
tetradic
#7F217E #7F5121 #217F22 #214F7F
square
#7F217E #7F5121 #217F22 #214F7F
split-complementary
#7F217E #4F7F21 #217F51
monochromatic
#1E081E #4E144E #7F217E #B02EAE #D04ACF

Accessibility & contrast

On white

8.67
#7F217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F217E
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F217E#FFFFFF#000000##FFFFFF
##7F217E1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114381
Deuteranopia (green-blind)
#3B507C
Tritanopia (blue-blind)
#832F4D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f217e;
/* rgb */ color: rgb(127, 33, 126);
/* oklch */ color: oklch(43.6% 0.167 328.4);
Tailwind
colors: {
  custom: {
    50: '#a767a4',
    500: '#7f217e',
    950: '#000000',
  },
}
SCSS
$custom: #7f217e;
$custom-light: #a767a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f217e",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 300.638,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43623,
    "c": 0.16726,
    "h": 328.4
  },
  "luminance": 0.07106
}

Semantic roles & 50–950 ramp

primary
#7F217E
secondary
#4AB24B
accent
#E24846
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F217E

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

Preview Lab → · Contrast checker → · Palette generator →

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