#7E1B87#7E1B87

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

Color values

HEX#7E1B87
RGBrgb(126, 27, 135)
HSLhsl(295, 67%, 32%)
HSVhsv(295, 80%, 53%)
CMYKcmyk(6.7%, 80%, 0%, 47.1%)
CIE-LABlab(31.74, 54.26, -37.76)
CIE-LCHlch(31.74, 66.11, 325.17°)
OKLaboklab(43.54% 0.1466 -0.1054)
OKLCHoklch(43.54% 0.181 324.3)
XYZxyz(13.3689, 6.9696, 23.5581)
Luminance0.0697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B87 #24871B
analogous
#481B87 #7E1B87 #871B5A
triadic
#7E1B87 #877E1B #1B877E
tetradic
#7E1B87 #87481B #24871B #1B5A87
square
#7E1B87 #87481B #24871B #1B5A87
split-complementary
#7E1B87 #5A871B #1B8748
monochromatic
#1F0721 #4E1154 #7E1B87 #AE25BA #CD43D9

Accessibility & contrast

On white

8.77
#7E1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7E1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B87
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B87#FFFFFF#000000##FFFFFF
##7E1B871.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#314F85
Tritanopia (blue-blind)
#813051
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1b87;
/* rgb */ color: rgb(126, 27, 135);
/* oklch */ color: oklch(43.5% 0.181 324.3);
Tailwind
colors: {
  custom: {
    50: '#a764aa',
    500: '#7e1b87',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b87;
$custom-light: #a764aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b87",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 295,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43544,
    "c": 0.18051,
    "h": 324.3
  },
  "luminance": 0.06969
}

Semantic roles & 50–950 ramp

primary
#7E1B87
secondary
#4EBA44
accent
#EA3E4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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