#7F219E#7F219E

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

Color values

HEX#7F219E
RGBrgb(127, 33, 158)
HSLhsl(285, 65%, 37%)
HSVhsv(285, 79%, 62%)
CMYKcmyk(19.6%, 79.1%, 0%, 38%)
CIE-LABlab(34.13, 56.91, -48.03)
CIE-LCHlch(34.13, 74.47, 319.84°)
OKLaboklab(45.76% 0.1398 -0.1355)
OKLCHoklch(45.76% 0.195 315.9)
XYZxyz(15.4668, 8.0690, 33.0839)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F219E #409E21
analogous
#41219E #7F219E #9E217F
triadic
#7F219E #9E7F21 #219E7F
tetradic
#7F219E #9E4121 #409E21 #217F9E
square
#7F219E #9E4121 #409E21 #217F9E
split-complementary
#7F219E #7F9E21 #219E41
monochromatic
#2E0C39 #56166B #7F219E #A82CD1 #BD5CDD

Accessibility & contrast

On white

8.03
#7F219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F219E
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F219E#FFFFFF#000000##FFFFFF
##7F219E1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#1E539B
Tritanopia (blue-blind)
#7D3E5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f219e;
/* rgb */ color: rgb(127, 33, 158);
/* oklch */ color: oklch(45.8% 0.195 315.9);
Tailwind
colors: {
  custom: {
    50: '#a868bb',
    500: '#7f219e',
    950: '#000000',
  },
}
SCSS
$custom: #7f219e;
$custom-light: #a868bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f219e",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 285.12,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45762,
    "c": 0.19468,
    "h": 315.9
  },
  "luminance": 0.08068
}

Semantic roles & 50–950 ramp

primary
#7F219E
secondary
#73C159
accent
#E83F69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F219E

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

Preview Lab → · Contrast checker → · Palette generator →

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