#7F219C#7F219C

#7F219C is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.193 H 316.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7F219C
RGBrgb(127, 33, 156)
HSLhsl(286, 65%, 37%)
HSVhsv(286, 79%, 61%)
CMYKcmyk(18.6%, 78.8%, 0%, 38.8%)
CIE-LABlab(33.98, 56.52, -47.05)
CIE-LCHlch(33.98, 73.54, 320.23°)
OKLaboklab(45.62% 0.1401 -0.1326)
OKLCHoklch(45.62% 0.193 316.6)
XYZxyz(15.2961, 8.0007, 32.1846)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F219C #3E9C21
analogous
#42219C #7F219C #9C217B
triadic
#7F219C #9C7F21 #219C7F
tetradic
#7F219C #9C4221 #3E9C21 #217B9C
square
#7F219C #9C4221 #3E9C21 #217B9C
split-complementary
#7F219C #7B9C21 #219C42
monochromatic
#2D0C37 #561669 #7F219C #A82CCF #BE5BDC

Accessibility & contrast

On white

8.08
#7F219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F219C
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F219C#FFFFFF#000000##FFFFFF
##7F219C1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#215299
Tritanopia (blue-blind)
#7D3D5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f219c;
/* rgb */ color: rgb(127, 33, 156);
/* oklch */ color: oklch(45.6% 0.193 316.6);
Tailwind
colors: {
  custom: {
    50: '#a868ba',
    500: '#7f219c',
    950: '#000000',
  },
}
SCSS
$custom: #7f219c;
$custom-light: #a868ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f219c",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 285.854,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45617,
    "c": 0.19292,
    "h": 316.6
  },
  "luminance": 0.08
}

Semantic roles & 50–950 ramp

primary
#7F219C
secondary
#71C158
accent
#E84067
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F219C

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

Preview Lab → · Contrast checker → · Palette generator →

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