#7E217B#7E217B

#7E217B is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.164 H 329.4°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7E217B
RGBrgb(126, 33, 123)
HSLhsl(302, 58%, 31%)
HSVhsv(302, 74%, 49%)
CMYKcmyk(0%, 73.8%, 2.4%, 50.6%)
CIE-LABlab(31.70, 50.16, -30.31)
CIE-LCHlch(31.70, 58.60, 328.86°)
OKLaboklab(43.29% 0.1413 -0.0837)
OKLCHoklch(43.29% 0.164 329.4)
XYZxyz(12.7231, 6.9543, 19.4073)
Luminance0.0695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E217B #217E24
analogous
#52217E #7E217B #7E214C
triadic
#7E217B #7B7E21 #217B7E
tetradic
#7E217B #7E5221 #217E24 #214C7E
square
#7E217B #7E5221 #217E24 #214C7E
split-complementary
#7E217B #4C7E21 #217E52
monochromatic
#1D081C #4E144C #7E217B #AE2EAA #D04ACB

Accessibility & contrast

On white

8.78
#7E217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7E217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E217B
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E217B#FFFFFF#000000##FFFFFF
##7E217B1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437D
Deuteranopia (green-blind)
#3C4F79
Tritanopia (blue-blind)
#832E4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e217b;
/* rgb */ color: rgb(126, 33, 123);
/* oklch */ color: oklch(43.3% 0.164 329.4);
Tailwind
colors: {
  custom: {
    50: '#a766a1',
    500: '#7e217b',
    950: '#000000',
  },
}
SCSS
$custom: #7e217b;
$custom-light: #a766a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e217b",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 301.935,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43285,
    "c": 0.16428,
    "h": 329.4
  },
  "luminance": 0.06953
}

Semantic roles & 50–950 ramp

primary
#7E217B
secondary
#4AB14D
accent
#E24B46
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E217B

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

Preview Lab → · Contrast checker → · Palette generator →

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