#7E2176#7E2176

#7E2176 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.160 H 331.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#7E2176
RGBrgb(126, 33, 118)
HSLhsl(305, 58%, 31%)
HSVhsv(305, 74%, 49%)
CMYKcmyk(0%, 73.8%, 6.3%, 50.6%)
CIE-LABlab(31.42, 49.31, -27.60)
CIE-LCHlch(31.42, 56.51, 330.76°)
OKLaboklab(42.99% 0.1411 -0.0759)
OKLCHoklch(42.99% 0.16 331.7)
XYZxyz(12.4181, 6.8323, 17.8008)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2176 #217E29
analogous
#57217E #7E2176 #7E2147
triadic
#7E2176 #767E21 #21767E
tetradic
#7E2176 #7E5721 #217E29 #21477E
square
#7E2176 #7E5721 #217E29 #21477E
split-complementary
#7E2176 #477E21 #217E57
monochromatic
#1D081B #4E1449 #7E2176 #AE2EA3 #D04AC4

Accessibility & contrast

On white

8.87
#7E2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7E2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2176
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2176#FFFFFF#000000##FFFFFF
##7E21761.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4278
Deuteranopia (green-blind)
#3E4F74
Tritanopia (blue-blind)
#832B49
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2176;
/* rgb */ color: rgb(126, 33, 118);
/* oklch */ color: oklch(43.0% 0.160 331.7);
Tailwind
colors: {
  custom: {
    50: '#a7669e',
    500: '#7e2176',
    950: '#000000',
  },
}
SCSS
$custom: #7e2176;
$custom-light: #a7669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2176",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 305.161,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42992,
    "c": 0.16025,
    "h": 331.7
  },
  "luminance": 0.06831
}

Semantic roles & 50–950 ramp

primary
#7E2176
secondary
#4AB153
accent
#E25346
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2176

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

Preview Lab → · Contrast checker → · Palette generator →

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