#7E1F87#7E1F87

#7E1F87 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.176 H 324.2°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#7E1F87
RGBrgb(126, 31, 135)
HSLhsl(295, 63%, 33%)
HSVhsv(295, 77%, 53%)
CMYKcmyk(6.7%, 77%, 0%, 47.1%)
CIE-LABlab(32.18, 52.99, -37.05)
CIE-LCHlch(32.18, 64.66, 325.04°)
OKLaboklab(43.86% 0.1431 -0.1033)
OKLCHoklch(43.86% 0.176 324.2)
XYZxyz(13.4670, 7.1657, 23.5908)
Luminance0.0717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F87 #28871F
analogous
#4A1F87 #7E1F87 #871F5C
triadic
#7E1F87 #877E1F #1F877E
tetradic
#7E1F87 #874A1F #28871F #1F5C87
square
#7E1F87 #874A1F #28871F #1F5C87
split-complementary
#7E1F87 #5C871F #1F874A
monochromatic
#210823 #501455 #7E1F87 #AC2AB9 #CA4BD6

Accessibility & contrast

On white

8.63
#7E1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F87
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F87#FFFFFF#000000##FFFFFF
##7E1F871.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#334F85
Tritanopia (blue-blind)
#803252
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1f87;
/* rgb */ color: rgb(126, 31, 135);
/* oklch */ color: oklch(43.9% 0.176 324.2);
Tailwind
colors: {
  custom: {
    50: '#a766aa',
    500: '#7e1f87',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f87;
$custom-light: #a766aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f87",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 294.808,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43859,
    "c": 0.17647,
    "h": 324.2
  },
  "luminance": 0.07165
}

Semantic roles & 50–950 ramp

primary
#7E1F87
secondary
#53B84A
accent
#E64250
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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