#7E2195#7E2195

#7E2195 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.186 H 318.6°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7E2195
RGBrgb(126, 33, 149)
HSLhsl(288, 64%, 36%)
HSVhsv(288, 78%, 58%)
CMYKcmyk(15.4%, 77.9%, 0%, 41.6%)
CIE-LABlab(33.34, 54.95, -43.83)
CIE-LCHlch(33.34, 70.29, 321.42°)
OKLaboklab(44.97% 0.1399 -0.1232)
OKLCHoklch(44.97% 0.186 318.6)
XYZxyz(14.5721, 7.6940, 29.1454)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2195 #389521
analogous
#442195 #7E2195 #952172
triadic
#7E2195 #957E21 #21957E
tetradic
#7E2195 #954421 #389521 #217295
square
#7E2195 #954421 #389521 #217295
split-complementary
#7E2195 #729521 #219544
monochromatic
#290B31 #541663 #7E2195 #A82CC7 #C057DA

Accessibility & contrast

On white

8.27
#7E2195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E2195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2195
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2195#FFFFFF#000000##FFFFFF
##7E21951.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#285192
Tritanopia (blue-blind)
#7E3A5A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2195;
/* rgb */ color: rgb(126, 33, 149);
/* oklch */ color: oklch(45.0% 0.186 318.6);
Tailwind
colors: {
  custom: {
    50: '#a767b5',
    500: '#7e2195',
    950: '#000000',
  },
}
SCSS
$custom: #7e2195;
$custom-light: #a767b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2195",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 288.103,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44974,
    "c": 0.1864,
    "h": 318.6
  },
  "luminance": 0.07693
}

Semantic roles & 50–950 ramp

primary
#7E2195
secondary
#69BE54
accent
#E74162
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2195

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

Preview Lab → · Contrast checker → · Palette generator →

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