#7D219D#7D219D

#7D219D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.193 H 315.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7D219D
RGBrgb(125, 33, 157)
HSLhsl(285, 65%, 37%)
HSVhsv(285, 79%, 62%)
CMYKcmyk(20.4%, 79%, 0%, 38.4%)
CIE-LABlab(33.74, 56.33, -48.07)
CIE-LCHlch(33.74, 74.05, 319.53°)
OKLaboklab(45.4% 0.1374 -0.1357)
OKLCHoklch(45.4% 0.193 315.4)
XYZxyz(15.0861, 7.8826, 32.6186)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D219D #419D21
analogous
#3F219D #7D219D #9D217F
triadic
#7D219D #9D7D21 #219D7D
tetradic
#7D219D #9D3F21 #419D21 #217F9D
square
#7D219D #9D3F21 #419D21 #217F9D
split-complementary
#7D219D #7F9D21 #219D3F
monochromatic
#2C0C38 #55166A #7D219D #A52CD0 #BB5CDD

Accessibility & contrast

On white

8.15
#7D219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7D219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D219D
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D219D#FFFFFF#000000##FFFFFF
##7D219D1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#1C529A
Tritanopia (blue-blind)
#7A3E5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d219d;
/* rgb */ color: rgb(125, 33, 157);
/* oklch */ color: oklch(45.4% 0.193 315.4);
Tailwind
colors: {
  custom: {
    50: '#a768bb',
    500: '#7d219d',
    950: '#000000',
  },
}
SCSS
$custom: #7d219d;
$custom-light: #a768bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d219d",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 284.516,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45402,
    "c": 0.19309,
    "h": 315.4
  },
  "luminance": 0.07882
}

Semantic roles & 50–950 ramp

primary
#7D219D
secondary
#74C159
accent
#E8406B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D219D

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

Preview Lab → · Contrast checker → · Palette generator →

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