#7F218F#7F218F

#7F218F is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.182 H 321.3°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#7F218F
RGBrgb(127, 33, 143)
HSLhsl(291, 63%, 35%)
HSVhsv(291, 77%, 56%)
CMYKcmyk(11.2%, 76.9%, 0%, 43.9%)
CIE-LABlab(33.10, 54.00, -40.52)
CIE-LCHlch(33.10, 67.51, 323.12°)
OKLaboklab(44.71% 0.1418 -0.1135)
OKLCHoklch(44.71% 0.182 321.3)
XYZxyz(14.2536, 7.5837, 26.6943)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F218F #318F21
analogous
#48218F #7F218F #8F2168
triadic
#7F218F #8F7F21 #218F7F
tetradic
#7F218F #8F4821 #318F21 #21688F
square
#7F218F #8F4821 #318F21 #21688F
split-complementary
#7F218F #688F21 #218F48
monochromatic
#270A2C #53165D #7F218F #AB2CC1 #C453D7

Accessibility & contrast

On white

8.34
#7F218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7F218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F218F
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F218F#FFFFFF#000000##FFFFFF
##7F218F1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#2F518C
Tritanopia (blue-blind)
#803757
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f218f;
/* rgb */ color: rgb(127, 33, 143);
/* oklch */ color: oklch(44.7% 0.182 321.3);
Tailwind
colors: {
  custom: {
    50: '#a867b0',
    500: '#7f218f',
    950: '#000000',
  },
}
SCSS
$custom: #7f218f;
$custom-light: #a867b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f218f",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 291.273,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4471,
    "c": 0.1816,
    "h": 321.3
  },
  "luminance": 0.07583
}

Semantic roles & 50–950 ramp

primary
#7F218F
secondary
#60BB51
accent
#E6425A
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F218F

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

Preview Lab → · Contrast checker → · Palette generator →

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