#7E2181#7E2181

#7E2181 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.169 H 326.6°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7E2181
RGBrgb(126, 33, 129)
HSLhsl(298, 59%, 32%)
HSVhsv(298, 74%, 51%)
CMYKcmyk(2.3%, 74.4%, 0%, 49.4%)
CIE-LABlab(32.05, 51.21, -33.51)
CIE-LCHlch(32.05, 61.20, 326.80°)
OKLaboklab(43.65% 0.1414 -0.093)
OKLCHoklch(43.65% 0.169 326.6)
XYZxyz(13.1103, 7.1092, 21.4463)
Luminance0.0711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2181 #248121
analogous
#4E2181 #7E2181 #812154
triadic
#7E2181 #817E21 #21817E
tetradic
#7E2181 #814E21 #248121 #215481
square
#7E2181 #814E21 #248121 #215481
split-complementary
#7E2181 #548121 #21814E
monochromatic
#1F0820 #4E1550 #7E2181 #AE2DB2 #CD4BD1

Accessibility & contrast

On white

8.67
#7E2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7E2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2181
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2181#FFFFFF#000000##FFFFFF
##7E21811.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094484
Deuteranopia (green-blind)
#384F7F
Tritanopia (blue-blind)
#82314F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e2181;
/* rgb */ color: rgb(126, 33, 129);
/* oklch */ color: oklch(43.6% 0.169 326.6);
Tailwind
colors: {
  custom: {
    50: '#a767a6',
    500: '#7e2181',
    950: '#000000',
  },
}
SCSS
$custom: #7e2181;
$custom-light: #a767a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2181",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 298.125,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4365,
    "c": 0.16923,
    "h": 326.6
  },
  "luminance": 0.07108
}

Semantic roles & 50–950 ramp

primary
#7E2181
secondary
#4EB44A
accent
#E2454A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E2181

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

Preview Lab → · Contrast checker → · Palette generator →

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