#7F218C#7F218C

#7F218C is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.179 H 322.5°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#7F218C
RGBrgb(127, 33, 140)
HSLhsl(293, 62%, 34%)
HSVhsv(293, 76%, 55%)
CMYKcmyk(9.3%, 76.4%, 0%, 45.1%)
CIE-LABlab(32.91, 53.44, -38.98)
CIE-LCHlch(32.91, 66.15, 323.89°)
OKLaboklab(44.51% 0.142 -0.109)
OKLCHoklch(44.51% 0.179 322.5)
XYZxyz(14.0294, 7.4940, 25.5134)
Luminance0.0749 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F218C #2E8C21
analogous
#4A218C #7F218C #8C2164
triadic
#7F218C #8C7F21 #218C7F
tetradic
#7F218C #8C4A21 #2E8C21 #21648C
square
#7F218C #8C4A21 #2E8C21 #21648C
split-complementary
#7F218C #648C21 #218C4A
monochromatic
#250A29 #52155A #7F218C #AC2DBE #C651D6

Accessibility & contrast

On white

8.40
#7F218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F218C
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F218C#FFFFFF#000000##FFFFFF
##7F218C1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#31518A
Tritanopia (blue-blind)
#813555
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f218c;
/* rgb */ color: rgb(127, 33, 140);
/* oklch */ color: oklch(44.5% 0.179 322.5);
Tailwind
colors: {
  custom: {
    50: '#a867ae',
    500: '#7f218c',
    950: '#000000',
  },
}
SCSS
$custom: #7f218c;
$custom-light: #a867ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f218c",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 292.71,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4451,
    "c": 0.17902,
    "h": 322.5
  },
  "luminance": 0.07493
}

Semantic roles & 50–950 ramp

primary
#7F218C
secondary
#5CB94F
accent
#E54357
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F218C

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

Preview Lab → · Contrast checker → · Palette generator →

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