#7E2184#7E2184

#7E2184 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.172 H 325.4°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#7E2184
RGBrgb(126, 33, 132)
HSLhsl(296, 60%, 32%)
HSVhsv(296, 75%, 52%)
CMYKcmyk(4.5%, 75%, 0%, 48.2%)
CIE-LABlab(32.24, 51.75, -35.10)
CIE-LCHlch(32.24, 62.53, 325.85°)
OKLaboklab(43.84% 0.1413 -0.0976)
OKLCHoklch(43.84% 0.172 325.4)
XYZxyz(13.3126, 7.1901, 22.5120)
Luminance0.0719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2184 #278421
analogous
#4D2184 #7E2184 #842158
triadic
#7E2184 #847E21 #21847E
tetradic
#7E2184 #844D21 #278421 #215884
square
#7E2184 #844D21 #278421 #215884
split-complementary
#7E2184 #588421 #21844D
monochromatic
#210922 #4F1553 #7E2184 #AD2DB5 #CA4DD2

Accessibility & contrast

On white

8.61
#7E2184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7E2184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2184
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2184#FFFFFF#000000##FFFFFF
##7E21841.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024587
Deuteranopia (green-blind)
#365082
Tritanopia (blue-blind)
#813251
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2184;
/* rgb */ color: rgb(126, 33, 132);
/* oklch */ color: oklch(43.8% 0.172 325.4);
Tailwind
colors: {
  custom: {
    50: '#a767a8',
    500: '#7e2184',
    950: '#000000',
  },
}
SCSS
$custom: #7e2184;
$custom-light: #a767a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2184",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 296.364,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43839,
    "c": 0.17175,
    "h": 325.4
  },
  "luminance": 0.07189
}

Semantic roles & 50–950 ramp

primary
#7E2184
secondary
#52B64B
accent
#E3454E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E2184

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

Preview Lab → · Contrast checker → · Palette generator →

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