#7D218C#7D218C

#7D218C is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.178 H 321.6°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#7D218C
RGBrgb(125, 33, 140)
HSLhsl(292, 62%, 34%)
HSVhsv(292, 76%, 55%)
CMYKcmyk(10.7%, 76.4%, 0%, 45.1%)
CIE-LABlab(32.57, 53.01, -39.53)
CIE-LCHlch(32.57, 66.13, 323.29°)
OKLaboklab(44.21% 0.1396 -0.1106)
OKLCHoklch(44.21% 0.178 321.6)
XYZxyz(13.7344, 7.3419, 25.4996)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D218C #308C21
analogous
#48218C #7D218C #8C2166
triadic
#7D218C #8C7D21 #218C7D
tetradic
#7D218C #8C4821 #308C21 #21668C
square
#7D218C #8C4821 #308C21 #21668C
split-complementary
#7D218C #668C21 #218C48
monochromatic
#250A29 #51155A #7D218C #A92DBE #C351D6

Accessibility & contrast

On white

8.51
#7D218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7D218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D218C
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D218C#FFFFFF#000000##FFFFFF
##7D218C1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#2F508A
Tritanopia (blue-blind)
#7E3655
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d218c;
/* rgb */ color: rgb(125, 33, 140);
/* oklch */ color: oklch(44.2% 0.178 321.6);
Tailwind
colors: {
  custom: {
    50: '#a667ae',
    500: '#7d218c',
    950: '#000000',
  },
}
SCSS
$custom: #7d218c;
$custom-light: #a667ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7d218c",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 291.589,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44208,
    "c": 0.17814,
    "h": 321.6
  },
  "luminance": 0.07341
}

Semantic roles & 50–950 ramp

primary
#7D218C
secondary
#5EB94F
accent
#E5435A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D218C

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

Preview Lab → · Contrast checker → · Palette generator →

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