#7E1987#7E1987

#7E1987 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.182 H 324.3°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7E1987
RGBrgb(126, 25, 135)
HSLhsl(295, 69%, 31%)
HSVhsv(295, 81%, 53%)
CMYKcmyk(6.7%, 81.5%, 0%, 47.1%)
CIE-LABlab(31.53, 54.85, -38.09)
CIE-LCHlch(31.53, 66.78, 325.23°)
OKLaboklab(43.4% 0.1482 -0.1063)
OKLCHoklch(43.4% 0.182 324.3)
XYZxyz(13.3246, 6.8810, 23.5433)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1987 #228719
analogous
#471987 #7E1987 #871959
triadic
#7E1987 #877E19 #19877E
tetradic
#7E1987 #874719 #228719 #195987
square
#7E1987 #874719 #228719 #195987
split-complementary
#7E1987 #598719 #198747
monochromatic
#1E0620 #4E0F53 #7E1987 #AE23BB #CF3FDB

Accessibility & contrast

On white

8.84
#7E1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1987
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1987#FFFFFF#000000##FFFFFF
##7E19871.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#304E85
Tritanopia (blue-blind)
#812F51
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1987;
/* rgb */ color: rgb(126, 25, 135);
/* oklch */ color: oklch(43.4% 0.182 324.3);
Tailwind
colors: {
  custom: {
    50: '#a764aa',
    500: '#7e1987',
    950: '#000000',
  },
}
SCSS
$custom: #7e1987;
$custom-light: #a764aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1987",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 295.091,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43401,
    "c": 0.18237,
    "h": 324.3
  },
  "luminance": 0.0688
}

Semantic roles & 50–950 ramp

primary
#7E1987
secondary
#4BBA41
accent
#EC3C4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1987

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

Preview Lab → · Contrast checker → · Palette generator →

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