#7D218E#7D218E

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

Color values

HEX#7D218E
RGBrgb(125, 33, 142)
HSLhsl(291, 62%, 34%)
HSVhsv(291, 77%, 56%)
CMYKcmyk(12%, 76.8%, 0%, 44.3%)
CIE-LABlab(32.70, 53.39, -40.56)
CIE-LCHlch(32.70, 67.05, 322.78°)
OKLaboklab(44.34% 0.1394 -0.1136)
OKLCHoklch(44.34% 0.18 320.8)
XYZxyz(13.8832, 7.4014, 26.2833)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D218E #328E21
analogous
#47218E #7D218E #8E2169
triadic
#7D218E #8E7D21 #218E7D
tetradic
#7D218E #8E4721 #328E21 #21698E
square
#7D218E #8E4721 #328E21 #21698E
split-complementary
#7D218E #698E21 #218E47
monochromatic
#260A2B #51155C #7D218E #A92DC0 #C252D7

Accessibility & contrast

On white

8.47
#7D218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7D218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D218E
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D218E#FFFFFF#000000##FFFFFF
##7D218E1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#2D508C
Tritanopia (blue-blind)
#7E3756
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d218e;
/* rgb */ color: rgb(125, 33, 142);
/* oklch */ color: oklch(44.3% 0.180 320.8);
Tailwind
colors: {
  custom: {
    50: '#a667b0',
    500: '#7d218e',
    950: '#000000',
  },
}
SCSS
$custom: #7d218e;
$custom-light: #a667b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d218e",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 290.642,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44343,
    "c": 0.17988,
    "h": 320.8
  },
  "luminance": 0.07401
}

Semantic roles & 50–950 ramp

primary
#7D218E
secondary
#61BA50
accent
#E5425C
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D218E

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

Preview Lab → · Contrast checker → · Palette generator →

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