#7F218E#7F218E

#7F218E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.181 H 321.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7F218E
RGBrgb(127, 33, 142)
HSLhsl(292, 62%, 34%)
HSVhsv(292, 77%, 56%)
CMYKcmyk(10.6%, 76.8%, 0%, 44.3%)
CIE-LABlab(33.04, 53.82, -40.01)
CIE-LCHlch(33.04, 67.06, 323.37°)
OKLaboklab(44.64% 0.1419 -0.112)
OKLCHoklch(44.64% 0.181 321.7)
XYZxyz(14.1782, 7.5535, 26.2971)
Luminance0.0755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F218E #308E21
analogous
#49218E #7F218E #8E2167
triadic
#7F218E #8E7F21 #218E7F
tetradic
#7F218E #8E4921 #308E21 #21678E
square
#7F218E #8E4921 #308E21 #21678E
split-complementary
#7F218E #678E21 #218E49
monochromatic
#260A2B #53155C #7F218E #AB2DC0 #C552D7

Accessibility & contrast

On white

8.36
#7F218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7F218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F218E
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F218E#FFFFFF#000000##FFFFFF
##7F218E1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#30518C
Tritanopia (blue-blind)
#803656
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f218e;
/* rgb */ color: rgb(127, 33, 142);
/* oklch */ color: oklch(44.6% 0.181 321.7);
Tailwind
colors: {
  custom: {
    50: '#a867b0',
    500: '#7f218e',
    950: '#000000',
  },
}
SCSS
$custom: #7f218e;
$custom-light: #a867b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f218e",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 291.743,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44643,
    "c": 0.18073,
    "h": 321.7
  },
  "luminance": 0.07553
}

Semantic roles & 50–950 ramp

primary
#7F218E
secondary
#5FBA50
accent
#E54259
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F218E

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

Preview Lab → · Contrast checker → · Palette generator →

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