#7F219D#7F219D

#7F219D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.194 H 316.2°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7F219D
RGBrgb(127, 33, 157)
HSLhsl(285, 65%, 37%)
HSVhsv(285, 79%, 62%)
CMYKcmyk(19.1%, 79%, 0%, 38.4%)
CIE-LABlab(34.05, 56.72, -47.54)
CIE-LCHlch(34.05, 74.01, 320.03°)
OKLaboklab(45.69% 0.14 -0.134)
OKLCHoklch(45.69% 0.194 316.2)
XYZxyz(15.3811, 8.0347, 32.6324)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F219D #3F9D21
analogous
#41219D #7F219D #9D217D
triadic
#7F219D #9D7F21 #219D7F
tetradic
#7F219D #9D4121 #3F9D21 #217D9D
square
#7F219D #9D4121 #3F9D21 #217D9D
split-complementary
#7F219D #7D9D21 #219D41
monochromatic
#2D0C38 #56166A #7F219D #A82CD0 #BD5CDD

Accessibility & contrast

On white

8.06
#7F219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7F219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F219D
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F219D#FFFFFF#000000##FFFFFF
##7F219D1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#20539A
Tritanopia (blue-blind)
#7D3D5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f219d;
/* rgb */ color: rgb(127, 33, 157);
/* oklch */ color: oklch(45.7% 0.194 316.2);
Tailwind
colors: {
  custom: {
    50: '#a868bb',
    500: '#7f219d',
    950: '#000000',
  },
}
SCSS
$custom: #7f219d;
$custom-light: #a868bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f219d",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 285.484,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45689,
    "c": 0.19381,
    "h": 316.2
  },
  "luminance": 0.08034
}

Semantic roles & 50–950 ramp

primary
#7F219D
secondary
#72C159
accent
#E84068
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F219D

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

Preview Lab → · Contrast checker → · Palette generator →

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