#7E2173#7E2173

#7E2173 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.8% C 0.158 H 333.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7E2173
RGBrgb(126, 33, 115)
HSLhsl(307, 58%, 31%)
HSVhsv(307, 74%, 49%)
CMYKcmyk(0%, 73.8%, 8.7%, 50.6%)
CIE-LABlab(31.26, 48.81, -25.95)
CIE-LCHlch(31.26, 55.28, 332.00°)
OKLaboklab(42.82% 0.1409 -0.0711)
OKLCHoklch(42.82% 0.158 333.2)
XYZxyz(12.2426, 6.7622, 16.8768)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2173 #217E2C
analogous
#5A217E #7E2173 #7E2144
triadic
#7E2173 #737E21 #21737E
tetradic
#7E2173 #7E5A21 #217E2C #21447E
square
#7E2173 #7E5A21 #217E2C #21447E
split-complementary
#7E2173 #447E21 #217E5A
monochromatic
#1D081A #4E1447 #7E2173 #AE2E9F #D04AC0

Accessibility & contrast

On white

8.93
#7E2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7E2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2173
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2173#FFFFFF#000000##FFFFFF
##7E21731.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4175
Deuteranopia (green-blind)
#404E71
Tritanopia (blue-blind)
#842A47
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2173;
/* rgb */ color: rgb(126, 33, 115);
/* oklch */ color: oklch(42.8% 0.158 333.2);
Tailwind
colors: {
  custom: {
    50: '#a7669b',
    500: '#7e2173',
    950: '#000000',
  },
}
SCSS
$custom: #7e2173;
$custom-light: #a7669b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2173",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 307.097,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42822,
    "c": 0.15788,
    "h": 333.2
  },
  "luminance": 0.06761
}

Semantic roles & 50–950 ramp

primary
#7E2173
secondary
#4AB156
accent
#E25946
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2173

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

Preview Lab → · Contrast checker → · Palette generator →

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