#7E2175#7E2175

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

Color values

HEX#7E2175
RGBrgb(126, 33, 117)
HSLhsl(306, 58%, 31%)
HSVhsv(306, 74%, 49%)
CMYKcmyk(0%, 73.8%, 7.1%, 50.6%)
CIE-LABlab(31.37, 49.14, -27.05)
CIE-LCHlch(31.37, 56.09, 331.17°)
OKLaboklab(42.94% 0.1411 -0.0743)
OKLCHoklch(42.94% 0.159 332.2)
XYZxyz(12.3590, 6.8087, 17.4895)
Luminance0.0681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2175 #217E2A
analogous
#58217E #7E2175 #7E2146
triadic
#7E2175 #757E21 #21757E
tetradic
#7E2175 #7E5821 #217E2A #21467E
square
#7E2175 #7E5821 #217E2A #21467E
split-complementary
#7E2175 #467E21 #217E58
monochromatic
#1D081B #4E1448 #7E2175 #AE2EA2 #D04AC3

Accessibility & contrast

On white

8.89
#7E2175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2175
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2175#FFFFFF#000000##FFFFFF
##7E21751.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4177
Deuteranopia (green-blind)
#3F4E73
Tritanopia (blue-blind)
#842B48
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2175;
/* rgb */ color: rgb(126, 33, 117);
/* oklch */ color: oklch(42.9% 0.159 332.2);
Tailwind
colors: {
  custom: {
    50: '#a7669d',
    500: '#7e2175',
    950: '#000000',
  },
}
SCSS
$custom: #7e2175;
$custom-light: #a7669d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2175",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 305.806,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42935,
    "c": 0.15946,
    "h": 332.2
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

primary
#7E2175
secondary
#4AB154
accent
#E25546
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2175

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

Preview Lab → · Contrast checker → · Palette generator →

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