#7E1D82#7E1D82

#7E1D82 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.174 H 326.3°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#7E1D82
RGBrgb(126, 29, 130)
HSLhsl(298, 64%, 31%)
HSVhsv(298, 78%, 51%)
CMYKcmyk(3.1%, 77.7%, 0%, 49%)
CIE-LABlab(31.64, 52.75, -34.80)
CIE-LCHlch(31.64, 63.19, 326.59°)
OKLaboklab(43.37% 0.1451 -0.0967)
OKLCHoklch(43.37% 0.174 326.3)
XYZxyz(13.0726, 6.9270, 21.7633)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D82 #21821D
analogous
#4B1D82 #7E1D82 #821D53
triadic
#7E1D82 #827E1D #1D827E
tetradic
#7E1D82 #824B1D #21821D #1D5382
square
#7E1D82 #824B1D #21821D #1D5382
split-complementary
#7E1D82 #53821D #1D824B
monochromatic
#1D071E #4E1250 #7E1D82 #AE28B4 #D044D5

Accessibility & contrast

On white

8.80
#7E1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1D82
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D82#FFFFFF#000000##FFFFFF
##7E1D821.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#364F80
Tritanopia (blue-blind)
#812F4F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1d82;
/* rgb */ color: rgb(126, 29, 130);
/* oklch */ color: oklch(43.4% 0.174 326.3);
Tailwind
colors: {
  custom: {
    50: '#a765a7',
    500: '#7e1d82',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d82;
$custom-light: #a765a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d82",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 297.624,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43374,
    "c": 0.17443,
    "h": 326.3
  },
  "luminance": 0.06926
}

Semantic roles & 50–950 ramp

primary
#7E1D82
secondary
#4AB546
accent
#E74148
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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