#7E2178#7E2178

#7E2178 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.162 H 330.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7E2178
RGBrgb(126, 33, 120)
HSLhsl(304, 58%, 31%)
HSVhsv(304, 74%, 49%)
CMYKcmyk(0%, 73.8%, 4.8%, 50.6%)
CIE-LABlab(31.53, 49.64, -28.69)
CIE-LCHlch(31.53, 57.34, 329.98°)
OKLaboklab(43.11% 0.1412 -0.079)
OKLCHoklch(43.11% 0.162 330.8)
XYZxyz(12.5382, 6.8804, 18.4333)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2178 #217E27
analogous
#55217E #7E2178 #7E2149
triadic
#7E2178 #787E21 #21787E
tetradic
#7E2178 #7E5521 #217E27 #21497E
square
#7E2178 #7E5521 #217E27 #21497E
split-complementary
#7E2178 #497E21 #217E55
monochromatic
#1D081C #4E144A #7E2178 #AE2EA6 #D04AC7

Accessibility & contrast

On white

8.84
#7E2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2178
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2178#FFFFFF#000000##FFFFFF
##7E21781.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18427A
Deuteranopia (green-blind)
#3D4F76
Tritanopia (blue-blind)
#832C4A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2178;
/* rgb */ color: rgb(126, 33, 120);
/* oklch */ color: oklch(43.1% 0.162 330.8);
Tailwind
colors: {
  custom: {
    50: '#a7669f',
    500: '#7e2178',
    950: '#000000',
  },
}
SCSS
$custom: #7e2178;
$custom-light: #a7669f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2178",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 303.871,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43108,
    "c": 0.16185,
    "h": 330.8
  },
  "luminance": 0.06879
}

Semantic roles & 50–950 ramp

primary
#7E2178
secondary
#4AB151
accent
#E25046
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2178

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

Preview Lab → · Contrast checker → · Palette generator →

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