#7F218D#7F218D

#7F218D is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.180 H 322.1°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7F218D
RGBrgb(127, 33, 141)
HSLhsl(292, 62%, 34%)
HSVhsv(292, 77%, 55%)
CMYKcmyk(9.9%, 76.6%, 0%, 44.7%)
CIE-LABlab(32.97, 53.63, -39.49)
CIE-LCHlch(32.97, 66.60, 323.63°)
OKLaboklab(44.58% 0.142 -0.1105)
OKLCHoklch(44.58% 0.18 322.1)
XYZxyz(14.1035, 7.5236, 25.9035)
Luminance0.0752 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F218D #2F8D21
analogous
#49218D #7F218D #8D2165
triadic
#7F218D #8D7F21 #218D7F
tetradic
#7F218D #8D4921 #2F8D21 #21658D
square
#7F218D #8D4921 #2F8D21 #21658D
split-complementary
#7F218D #658D21 #218D49
monochromatic
#260A2A #52155B #7F218D #AC2DBF #C552D6

Accessibility & contrast

On white

8.38
#7F218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7F218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F218D
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F218D#FFFFFF#000000##FFFFFF
##7F218D1.008.382.508.38
#FFFFFF8.381.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#31518B
Tritanopia (blue-blind)
#803656
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f218d;
/* rgb */ color: rgb(127, 33, 141);
/* oklch */ color: oklch(44.6% 0.180 322.1);
Tailwind
colors: {
  custom: {
    50: '#a867af',
    500: '#7f218d',
    950: '#000000',
  },
}
SCSS
$custom: #7f218d;
$custom-light: #a867af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f218d",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 292.222,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44576,
    "c": 0.17987,
    "h": 322.1
  },
  "luminance": 0.07523
}

Semantic roles & 50–950 ramp

primary
#7F218D
secondary
#5EBA50
accent
#E54358
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F218D

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

Preview Lab → · Contrast checker → · Palette generator →

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