#7D219B#7D219B

#7D219B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.191 H 316.1°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7D219B
RGBrgb(125, 33, 155)
HSLhsl(285, 65%, 37%)
HSVhsv(285, 79%, 61%)
CMYKcmyk(19.4%, 78.7%, 0%, 39.2%)
CIE-LABlab(33.59, 55.93, -47.09)
CIE-LCHlch(33.59, 73.11, 319.91°)
OKLaboklab(45.26% 0.1378 -0.1328)
OKLCHoklch(45.26% 0.191 316.1)
XYZxyz(14.9168, 7.8148, 31.7267)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D219B #3F9B21
analogous
#40219B #7D219B #9B217C
triadic
#7D219B #9B7D21 #219B7D
tetradic
#7D219B #9B4021 #3F9B21 #217C9B
square
#7D219B #9B4021 #3F9B21 #217C9B
split-complementary
#7D219B #7C9B21 #219B40
monochromatic
#2C0C36 #541669 #7D219B #A62CCD #BC5ADC

Accessibility & contrast

On white

8.19
#7D219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7D219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D219B
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D219B#FFFFFF#000000##FFFFFF
##7D219B1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#1F5198
Tritanopia (blue-blind)
#7B3D5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d219b;
/* rgb */ color: rgb(125, 33, 155);
/* oklch */ color: oklch(45.3% 0.191 316.1);
Tailwind
colors: {
  custom: {
    50: '#a768b9',
    500: '#7d219b',
    950: '#000000',
  },
}
SCSS
$custom: #7d219b;
$custom-light: #a768b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d219b",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 285.246,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45256,
    "c": 0.19132,
    "h": 316.1
  },
  "luminance": 0.07814
}

Semantic roles & 50–950 ramp

primary
#7D219B
secondary
#71C058
accent
#E84069
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D219B

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

Preview Lab → · Contrast checker → · Palette generator →

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