#7F217B#7F217B

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

Color values

HEX#7F217B
RGBrgb(127, 33, 123)
HSLhsl(303, 59%, 31%)
HSVhsv(303, 74%, 50%)
CMYKcmyk(0%, 74%, 3.1%, 50.2%)
CIE-LABlab(31.88, 50.40, -30.02)
CIE-LCHlch(31.88, 58.66, 329.22°)
OKLaboklab(43.44% 0.1425 -0.0829)
OKLCHoklch(43.44% 0.165 329.8)
XYZxyz(12.8713, 7.0308, 19.4142)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F217B #217F25
analogous
#54217F #7F217B #7F214C
triadic
#7F217B #7B7F21 #217B7F
tetradic
#7F217B #7F5421 #217F25 #214C7F
square
#7F217B #7F5421 #217F25 #214C7F
split-complementary
#7F217B #4C7F21 #217F54
monochromatic
#1E081D #4E144C #7F217B #B02EAA #D04ACA

Accessibility & contrast

On white

8.73
#7F217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F217B
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F217B#FFFFFF#000000##FFFFFF
##7F217B1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15437D
Deuteranopia (green-blind)
#3C4F79
Tritanopia (blue-blind)
#842D4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f217b;
/* rgb */ color: rgb(127, 33, 123);
/* oklch */ color: oklch(43.4% 0.165 329.8);
Tailwind
colors: {
  custom: {
    50: '#a766a1',
    500: '#7f217b',
    950: '#000000',
  },
}
SCSS
$custom: #7f217b;
$custom-light: #a766a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f217b",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 302.553,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43443,
    "c": 0.16481,
    "h": 329.8
  },
  "luminance": 0.0703
}

Semantic roles & 50–950 ramp

primary
#7F217B
secondary
#4AB24F
accent
#E24C46
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F217B

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

Preview Lab → · Contrast checker → · Palette generator →

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