#7F218B#7F218B

#7F218B is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.178 H 322.9°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7F218B
RGBrgb(127, 33, 139)
HSLhsl(293, 62%, 34%)
HSVhsv(293, 76%, 55%)
CMYKcmyk(8.6%, 76.3%, 0%, 45.5%)
CIE-LABlab(32.84, 53.26, -38.46)
CIE-LCHlch(32.84, 65.69, 324.16°)
OKLaboklab(44.44% 0.1421 -0.1074)
OKLCHoklch(44.44% 0.178 322.9)
XYZxyz(13.9560, 7.4646, 25.1268)
Luminance0.0746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F218B #2D8B21
analogous
#4A218B #7F218B #8B2162
triadic
#7F218B #8B7F21 #218B7F
tetradic
#7F218B #8B4A21 #2D8B21 #21628B
square
#7F218B #8B4A21 #2D8B21 #21628B
split-complementary
#7F218B #628B21 #218B4A
monochromatic
#250A28 #52155A #7F218B #AC2DBC #C751D6

Accessibility & contrast

On white

8.42
#7F218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F218B
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F218B#FFFFFF#000000##FFFFFF
##7F218B1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#325189
Tritanopia (blue-blind)
#813555
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f218b;
/* rgb */ color: rgb(127, 33, 139);
/* oklch */ color: oklch(44.4% 0.178 322.9);
Tailwind
colors: {
  custom: {
    50: '#a867ad',
    500: '#7f218b',
    950: '#000000',
  },
}
SCSS
$custom: #7f218b;
$custom-light: #a867ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f218b",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 293.208,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44444,
    "c": 0.17816,
    "h": 322.9
  },
  "luminance": 0.07464
}

Semantic roles & 50–950 ramp

primary
#7F218B
secondary
#5BB94F
accent
#E54355
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F218B

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

Preview Lab → · Contrast checker → · Palette generator →

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