#7F218A#7F218A

#7F218A is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.177 H 323.3°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7F218A
RGBrgb(127, 33, 138)
HSLhsl(294, 61%, 34%)
HSVhsv(294, 76%, 54%)
CMYKcmyk(8%, 76.1%, 0%, 45.9%)
CIE-LABlab(32.78, 53.07, -37.95)
CIE-LCHlch(32.78, 65.24, 324.43°)
OKLaboklab(44.38% 0.1422 -0.1059)
OKLCHoklch(44.38% 0.177 323.3)
XYZxyz(13.8833, 7.4356, 24.7438)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F218A #2C8A21
analogous
#4A218A #7F218A #8A2160
triadic
#7F218A #8A7F21 #218A7F
tetradic
#7F218A #8A4A21 #2C8A21 #21608A
square
#7F218A #8A4A21 #2C8A21 #21608A
split-complementary
#7F218A #608A21 #218A4A
monochromatic
#240927 #521559 #7F218A #AC2DBB #C750D5

Accessibility & contrast

On white

8.44
#7F218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7F218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F218A
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F218A#FFFFFF#000000##FFFFFF
##7F218A1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#335188
Tritanopia (blue-blind)
#813554
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f218a;
/* rgb */ color: rgb(127, 33, 138);
/* oklch */ color: oklch(44.4% 0.177 323.3);
Tailwind
colors: {
  custom: {
    50: '#a867ad',
    500: '#7f218a',
    950: '#000000',
  },
}
SCSS
$custom: #7f218a;
$custom-light: #a867ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f218a",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 293.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44378,
    "c": 0.17731,
    "h": 323.3
  },
  "luminance": 0.07435
}

Semantic roles & 50–950 ramp

primary
#7F218A
secondary
#59B94E
accent
#E54354
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F218A

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

Preview Lab → · Contrast checker → · Palette generator →

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