#7E1CA5#7E1CA5

#7E1CA5 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.8% C 0.205 H 313.5°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7E1CA5
RGBrgb(126, 28, 165)
HSLhsl(283, 71%, 38%)
HSVhsv(283, 83%, 65%)
CMYKcmyk(23.6%, 83%, 0%, 35.3%)
CIE-LABlab(33.95, 59.69, -52.56)
CIE-LCHlch(33.95, 79.53, 318.63°)
OKLaboklab(45.77% 0.141 -0.1488)
OKLCHoklch(45.77% 0.205 313.5)
XYZxyz(15.8098, 7.9833, 36.2981)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1CA5 #43A51C
analogous
#3A1CA5 #7E1CA5 #A51C87
triadic
#7E1CA5 #A57E1C #1CA57E
tetradic
#7E1CA5 #A53A1C #43A51C #1C87A5
square
#7E1CA5 #A53A1C #43A51C #1C87A5
split-complementary
#7E1CA5 #87A51C #1CA53A
monochromatic
#2E0A3C #561371 #7E1CA5 #A625D9 #BB59E3

Accessibility & contrast

On white

8.09
#7E1CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E1CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1CA5
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1CA5#FFFFFF#000000##FFFFFF
##7E1CA51.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#0352A2
Tritanopia (blue-blind)
#7A3F62
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e1ca5;
/* rgb */ color: rgb(126, 28, 165);
/* oklch */ color: oklch(45.8% 0.205 313.5);
Tailwind
colors: {
  custom: {
    50: '#a866c1',
    500: '#7e1ca5',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ca5;
$custom-light: #a866c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ca5",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 165
  },
  "hsl": {
    "h": 282.92,
    "s": 70.984,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45767,
    "c": 0.20497,
    "h": 313.5
  },
  "luminance": 0.07983
}

Semantic roles & 50–950 ramp

primary
#7E1CA5
secondary
#76C656
accent
#EE3A6D
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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