#7F219B#7F219B

#7F219B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.192 H 316.9°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7F219B
RGBrgb(127, 33, 155)
HSLhsl(286, 65%, 37%)
HSVhsv(286, 79%, 61%)
CMYKcmyk(18.1%, 78.7%, 0%, 39.2%)
CIE-LABlab(33.91, 56.32, -46.55)
CIE-LCHlch(33.91, 73.07, 320.42°)
OKLaboklab(45.55% 0.1403 -0.1311)
OKLCHoklch(45.55% 0.192 316.9)
XYZxyz(15.2118, 7.9670, 31.7405)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F219B #3D9B21
analogous
#42219B #7F219B #9B217A
triadic
#7F219B #9B7F21 #219B7F
tetradic
#7F219B #9B4221 #3D9B21 #217A9B
square
#7F219B #9B4221 #3D9B21 #217A9B
split-complementary
#7F219B #7A9B21 #219B42
monochromatic
#2C0C36 #561669 #7F219B #A82CCD #BE5ADC

Accessibility & contrast

On white

8.10
#7F219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7F219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F219B
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F219B#FFFFFF#000000##FFFFFF
##7F219B1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#225298
Tritanopia (blue-blind)
#7D3C5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f219b;
/* rgb */ color: rgb(127, 33, 155);
/* oklch */ color: oklch(45.5% 0.192 316.9);
Tailwind
colors: {
  custom: {
    50: '#a868b9',
    500: '#7f219b',
    950: '#000000',
  },
}
SCSS
$custom: #7f219b;
$custom-light: #a868b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f219b",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 286.23,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45545,
    "c": 0.19205,
    "h": 316.9
  },
  "luminance": 0.07966
}

Semantic roles & 50–950 ramp

primary
#7F219B
secondary
#70C058
accent
#E84066
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F219B

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

Preview Lab → · Contrast checker → · Palette generator →

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