#7D218D#7D218D

#7D218D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.179 H 321.2°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#7D218D
RGBrgb(125, 33, 141)
HSLhsl(291, 62%, 34%)
HSVhsv(291, 77%, 55%)
CMYKcmyk(11.3%, 76.6%, 0%, 44.7%)
CIE-LABlab(32.64, 53.20, -40.05)
CIE-LCHlch(32.64, 66.59, 323.03°)
OKLaboklab(44.28% 0.1395 -0.1121)
OKLCHoklch(44.28% 0.179 321.2)
XYZxyz(13.8085, 7.3715, 25.8897)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D218D #318D21
analogous
#47218D #7D218D #8D2167
triadic
#7D218D #8D7D21 #218D7D
tetradic
#7D218D #8D4721 #318D21 #21678D
square
#7D218D #8D4721 #318D21 #21678D
split-complementary
#7D218D #678D21 #218D47
monochromatic
#250A2A #51155B #7D218D #A92DBF #C352D6

Accessibility & contrast

On white

8.49
#7D218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D218D
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D218D#FFFFFF#000000##FFFFFF
##7D218D1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#2E508B
Tritanopia (blue-blind)
#7E3656
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d218d;
/* rgb */ color: rgb(125, 33, 141);
/* oklch */ color: oklch(44.3% 0.179 321.2);
Tailwind
colors: {
  custom: {
    50: '#a667af',
    500: '#7d218d',
    950: '#000000',
  },
}
SCSS
$custom: #7d218d;
$custom-light: #a667af;
$custom-dark: #000000;
JSON
{
  "hex": "#7d218d",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 291.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44275,
    "c": 0.17901,
    "h": 321.2
  },
  "luminance": 0.07371
}

Semantic roles & 50–950 ramp

primary
#7D218D
secondary
#60BA50
accent
#E5435B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D218D

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

Preview Lab → · Contrast checker → · Palette generator →

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