#7E2087#7E2087

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

Color values

HEX#7E2087
RGBrgb(126, 32, 135)
HSLhsl(295, 62%, 33%)
HSVhsv(295, 76%, 53%)
CMYKcmyk(6.7%, 76.3%, 0%, 47.1%)
CIE-LABlab(32.30, 52.65, -36.86)
CIE-LCHlch(32.30, 64.27, 325.00°)
OKLaboklab(43.94% 0.1421 -0.1028)
OKLCHoklch(43.94% 0.175 324.1)
XYZxyz(13.4935, 7.2188, 23.5996)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2087 #298720
analogous
#4A2087 #7E2087 #87205D
triadic
#7E2087 #877E20 #20877E
tetradic
#7E2087 #874A20 #298720 #205D87
square
#7E2087 #874A20 #298720 #205D87
split-complementary
#7E2087 #5D8720 #20874A
monochromatic
#220924 #501456 #7E2087 #AC2CB8 #C94DD5

Accessibility & contrast

On white

8.59
#7E2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7E2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2087
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2087#FFFFFF#000000##FFFFFF
##7E20871.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#345085
Tritanopia (blue-blind)
#803352
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2087;
/* rgb */ color: rgb(126, 32, 135);
/* oklch */ color: oklch(43.9% 0.175 324.1);
Tailwind
colors: {
  custom: {
    50: '#a766aa',
    500: '#7e2087',
    950: '#000000',
  },
}
SCSS
$custom: #7e2087;
$custom-light: #a766aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2087",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 294.757,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43944,
    "c": 0.1754,
    "h": 324.1
  },
  "luminance": 0.07218
}

Semantic roles & 50–950 ramp

primary
#7E2087
secondary
#55B84B
accent
#E54351
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E2087

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

Preview Lab → · Contrast checker → · Palette generator →

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