#7F219F#7F219F

#7F219F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.196 H 315.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7F219F
RGBrgb(127, 33, 159)
HSLhsl(285, 66%, 38%)
HSVhsv(285, 79%, 62%)
CMYKcmyk(20.1%, 79.2%, 0%, 37.6%)
CIE-LABlab(34.20, 57.12, -48.52)
CIE-LCHlch(34.20, 74.94, 319.65°)
OKLaboklab(45.84% 0.1396 -0.1369)
OKLCHoklch(45.84% 0.196 315.6)
XYZxyz(15.5533, 8.1035, 33.5390)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F219F #419F21
analogous
#40219F #7F219F #9F2180
triadic
#7F219F #9F7F21 #219F7F
tetradic
#7F219F #9F4021 #419F21 #21809F
square
#7F219F #9F4021 #419F21 #21809F
split-complementary
#7F219F #809F21 #219F40
monochromatic
#2E0C3A #57166C #7F219F #A72CD2 #BD5DDD

Accessibility & contrast

On white

8.01
#7F219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7F219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F219F
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F219F#FFFFFF#000000##FFFFFF
##7F219F1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#1D539C
Tritanopia (blue-blind)
#7C3E60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f219f;
/* rgb */ color: rgb(127, 33, 159);
/* oklch */ color: oklch(45.8% 0.196 315.6);
Tailwind
colors: {
  custom: {
    50: '#a868bc',
    500: '#7f219f',
    950: '#000000',
  },
}
SCSS
$custom: #7f219f;
$custom-light: #a868bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f219f",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 284.762,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45835,
    "c": 0.19557,
    "h": 315.6
  },
  "luminance": 0.08103
}

Semantic roles & 50–950 ramp

primary
#7F219F
secondary
#74C25A
accent
#E93F6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F219F

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

Preview Lab → · Contrast checker → · Palette generator →

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