#7E216F#7E216F

#7E216F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.6% C 0.155 H 335.3°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7E216F
RGBrgb(126, 33, 111)
HSLhsl(310, 58%, 31%)
HSVhsv(310, 74%, 49%)
CMYKcmyk(0%, 73.8%, 11.9%, 50.6%)
CIE-LABlab(31.05, 48.16, -23.74)
CIE-LCHlch(31.05, 53.69, 333.76°)
OKLaboklab(42.6% 0.1406 -0.0648)
OKLCHoklch(42.6% 0.155 335.3)
XYZxyz(12.0174, 6.6721, 15.6908)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E216F #217E30
analogous
#5E217E #7E216F #7E2140
triadic
#7E216F #6F7E21 #216F7E
tetradic
#7E216F #7E5E21 #217E30 #21407E
square
#7E216F #7E5E21 #217E30 #21407E
split-complementary
#7E216F #407E21 #217E5E
monochromatic
#1D081A #4E1444 #7E216F #AE2E9A #D04ABA

Accessibility & contrast

On white

9.00
#7E216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7E216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E216F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E216F#FFFFFF#000000##FFFFFF
##7E216F1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214071
Deuteranopia (green-blind)
#414E6D
Tritanopia (blue-blind)
#842845
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e216f;
/* rgb */ color: rgb(126, 33, 111);
/* oklch */ color: oklch(42.6% 0.155 335.3);
Tailwind
colors: {
  custom: {
    50: '#a76698',
    500: '#7e216f',
    950: '#000000',
  },
}
SCSS
$custom: #7e216f;
$custom-light: #a76698;
$custom-dark: #000000;
JSON
{
  "hex": "#7e216f",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 309.677,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42602,
    "c": 0.15479,
    "h": 335.3
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#7E216F
secondary
#4AB15B
accent
#E25F46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E216F

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

Preview Lab → · Contrast checker → · Palette generator →

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