#7E1C87#7E1C87

#7E1C87 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.180 H 324.3°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#7E1C87
RGBrgb(126, 28, 135)
HSLhsl(295, 66%, 32%)
HSVhsv(295, 79%, 53%)
CMYKcmyk(6.7%, 79.3%, 0%, 47.1%)
CIE-LABlab(31.84, 53.96, -37.59)
CIE-LCHlch(31.84, 65.76, 325.14°)
OKLaboklab(43.62% 0.1457 -0.1049)
OKLCHoklch(43.62% 0.18 324.3)
XYZxyz(13.3922, 7.0163, 23.5659)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C87 #25871C
analogous
#491C87 #7E1C87 #871C5B
triadic
#7E1C87 #877E1C #1C877E
tetradic
#7E1C87 #87491C #25871C #1C5B87
square
#7E1C87 #87491C #25871C #1C5B87
split-complementary
#7E1C87 #5B871C #1C8749
monochromatic
#1F0722 #4F1154 #7E1C87 #AD27BA #CC45D8

Accessibility & contrast

On white

8.74
#7E1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7E1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C87
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C87#FFFFFF#000000##FFFFFF
##7E1C871.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#324F85
Tritanopia (blue-blind)
#813151
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1c87;
/* rgb */ color: rgb(126, 28, 135);
/* oklch */ color: oklch(43.6% 0.180 324.3);
Tailwind
colors: {
  custom: {
    50: '#a765aa',
    500: '#7e1c87',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c87;
$custom-light: #a765aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c87",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 294.953,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.4362,
    "c": 0.17954,
    "h": 324.3
  },
  "luminance": 0.07015
}

Semantic roles & 50–950 ramp

primary
#7E1C87
secondary
#4FBA45
accent
#E93F4D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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