#7E1CA0#7E1CA0

#7E1CA0 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.4% C 0.201 H 315.1°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#7E1CA0
RGBrgb(126, 28, 160)
HSLhsl(285, 70%, 37%)
HSVhsv(285, 83%, 63%)
CMYKcmyk(21.2%, 82.5%, 0%, 37.3%)
CIE-LABlab(33.57, 58.69, -50.15)
CIE-LCHlch(33.57, 77.20, 319.49°)
OKLaboklab(45.39% 0.1421 -0.1417)
OKLCHoklch(45.39% 0.201 315.1)
XYZxyz(15.3636, 7.8048, 33.9481)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1CA0 #3EA01C
analogous
#3C1CA0 #7E1CA0 #A01C80
triadic
#7E1CA0 #A07E1C #1CA07E
tetradic
#7E1CA0 #A03C1C #3EA01C #1C80A0
square
#7E1CA0 #A03C1C #3EA01C #1C80A0
split-complementary
#7E1CA0 #80A01C #1CA03C
monochromatic
#2C0A38 #55136C #7E1CA0 #A725D4 #BD55E1

Accessibility & contrast

On white

8.20
#7E1CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E1CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1CA0
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1CA0#FFFFFF#000000##FFFFFF
##7E1CA01.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#13519D
Tritanopia (blue-blind)
#7B3D60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1ca0;
/* rgb */ color: rgb(126, 28, 160);
/* oklch */ color: oklch(45.4% 0.201 315.1);
Tailwind
colors: {
  custom: {
    50: '#a866bd',
    500: '#7e1ca0',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ca0;
$custom-light: #a866bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ca0",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 284.545,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45387,
    "c": 0.20065,
    "h": 315.1
  },
  "luminance": 0.07804
}

Semantic roles & 50–950 ramp

primary
#7E1CA0
secondary
#70C453
accent
#ED3B69
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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