#7E2174#7E2174

#7E2174 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.159 H 332.7°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#7E2174
RGBrgb(126, 33, 116)
HSLhsl(306, 58%, 31%)
HSVhsv(306, 74%, 49%)
CMYKcmyk(0%, 73.8%, 7.9%, 50.6%)
CIE-LABlab(31.31, 48.97, -26.50)
CIE-LCHlch(31.31, 55.68, 331.58°)
OKLaboklab(42.88% 0.141 -0.0727)
OKLCHoklch(42.88% 0.159 332.7)
XYZxyz(12.3005, 6.7853, 17.1815)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2174 #217E2B
analogous
#59217E #7E2174 #7E2145
triadic
#7E2174 #747E21 #21747E
tetradic
#7E2174 #7E5921 #217E2B #21457E
square
#7E2174 #7E5921 #217E2B #21457E
split-complementary
#7E2174 #457E21 #217E59
monochromatic
#1D081B #4E1447 #7E2174 #AE2EA1 #D04AC1

Accessibility & contrast

On white

8.91
#7E2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2174
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2174#FFFFFF#000000##FFFFFF
##7E21741.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4176
Deuteranopia (green-blind)
#3F4E72
Tritanopia (blue-blind)
#842A48
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2174;
/* rgb */ color: rgb(126, 33, 116);
/* oklch */ color: oklch(42.9% 0.159 332.7);
Tailwind
colors: {
  custom: {
    50: '#a7669c',
    500: '#7e2174',
    950: '#000000',
  },
}
SCSS
$custom: #7e2174;
$custom-light: #a7669c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2174",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 306.452,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42878,
    "c": 0.15867,
    "h": 332.7
  },
  "luminance": 0.06784
}

Semantic roles & 50–950 ramp

primary
#7E2174
secondary
#4AB155
accent
#E25746
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2174

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

Preview Lab → · Contrast checker → · Palette generator →

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