#7E2187#7E2187

#7E2187 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.174 H 324.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7E2187
RGBrgb(126, 33, 135)
HSLhsl(295, 61%, 33%)
HSVhsv(295, 76%, 53%)
CMYKcmyk(6.7%, 75.6%, 0%, 47.1%)
CIE-LABlab(32.42, 52.30, -36.67)
CIE-LCHlch(32.42, 63.87, 324.96°)
OKLaboklab(44.03% 0.1412 -0.1022)
OKLCHoklch(44.03% 0.174 324.1)
XYZxyz(13.5208, 7.2734, 23.6087)
Luminance0.0727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2187 #2A8721
analogous
#4B2187 #7E2187 #87215D
triadic
#7E2187 #877E21 #21877E
tetradic
#7E2187 #874B21 #2A8721 #215D87
square
#7E2187 #874B21 #2A8721 #215D87
split-complementary
#7E2187 #5D8721 #21874B
monochromatic
#220925 #501556 #7E2187 #AC2DB8 #C84FD4

Accessibility & contrast

On white

8.56
#7E2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7E2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2187
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2187#FFFFFF#000000##FFFFFF
##7E21871.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.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: #7e2187;
/* rgb */ color: rgb(126, 33, 135);
/* oklch */ color: oklch(44.0% 0.174 324.1);
Tailwind
colors: {
  custom: {
    50: '#a767aa',
    500: '#7e2187',
    950: '#000000',
  },
}
SCSS
$custom: #7e2187;
$custom-light: #a767aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2187",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 294.706,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44031,
    "c": 0.17429,
    "h": 324.1
  },
  "luminance": 0.07273
}

Semantic roles & 50–950 ramp

primary
#7E2187
secondary
#56B74D
accent
#E44452
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E2187

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

Preview Lab → · Contrast checker → · Palette generator →

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