#7E2182#7E2182

#7E2182 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.170 H 326.2°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7E2182
RGBrgb(126, 33, 130)
HSLhsl(298, 60%, 32%)
HSVhsv(298, 75%, 51%)
CMYKcmyk(3.1%, 74.6%, 0%, 49%)
CIE-LABlab(32.11, 51.39, -34.04)
CIE-LCHlch(32.11, 61.64, 326.48°)
OKLaboklab(43.71% 0.1413 -0.0946)
OKLCHoklch(43.71% 0.17 326.2)
XYZxyz(13.1771, 7.1359, 21.7981)
Luminance0.0713 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2182 #258221
analogous
#4E2182 #7E2182 #822156
triadic
#7E2182 #827E21 #21827E
tetradic
#7E2182 #824E21 #258221 #215682
square
#7E2182 #824E21 #258221 #215682
split-complementary
#7E2182 #568221 #21824E
monochromatic
#1F0820 #4F1551 #7E2182 #AD2DB3 #CC4CD2

Accessibility & contrast

On white

8.65
#7E2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2182
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2182#FFFFFF#000000##FFFFFF
##7E21821.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074485
Deuteranopia (green-blind)
#375080
Tritanopia (blue-blind)
#813150
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2182;
/* rgb */ color: rgb(126, 33, 130);
/* oklch */ color: oklch(43.7% 0.170 326.2);
Tailwind
colors: {
  custom: {
    50: '#a767a7',
    500: '#7e2182',
    950: '#000000',
  },
}
SCSS
$custom: #7e2182;
$custom-light: #a767a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2182",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 297.526,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43713,
    "c": 0.17007,
    "h": 326.2
  },
  "luminance": 0.07135
}

Semantic roles & 50–950 ramp

primary
#7E2182
secondary
#4FB44A
accent
#E3454C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E2182

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

Preview Lab → · Contrast checker → · Palette generator →

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