#7E2871#7E2871

#7E2871 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.4% C 0.147 H 334.4°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7E2871
RGBrgb(126, 40, 113)
HSLhsl(309, 52%, 33%)
HSVhsv(309, 68%, 49%)
CMYKcmyk(0%, 68.3%, 10.3%, 50.6%)
CIE-LABlab(32.14, 45.71, -23.30)
CIE-LCHlch(32.14, 51.31, 332.99°)
OKLaboklab(43.42% 0.1326 -0.0636)
OKLCHoklch(43.42% 0.147 334.4)
XYZxyz(12.3437, 7.1465, 16.3489)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2871 #287E35
analogous
#60287E #7E2871 #7E2846
triadic
#7E2871 #717E28 #28717E
tetradic
#7E2871 #7E6028 #287E35 #28467E
square
#7E2871 #7E6028 #287E35 #28467E
split-complementary
#7E2871 #467E28 #287E60
monochromatic
#210B1E #501947 #7E2871 #AC379B #CA57B8

Accessibility & contrast

On white

8.65
#7E2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2871
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2871#FFFFFF#000000##FFFFFF
##7E28711.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274373
Deuteranopia (green-blind)
#44506F
Tritanopia (blue-blind)
#842E49
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2871;
/* rgb */ color: rgb(126, 40, 113);
/* oklch */ color: oklch(43.4% 0.147 334.4);
Tailwind
colors: {
  custom: {
    50: '#a6699a',
    500: '#7e2871',
    950: '#000000',
  },
}
SCSS
$custom: #7e2871;
$custom-light: #a6699a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2871",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 309.07,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43424,
    "c": 0.14711,
    "h": 334.4
  },
  "luminance": 0.07145
}

Semantic roles & 50–950 ramp

primary
#7E2871
secondary
#53AF61
accent
#DB624D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2871

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

Preview Lab → · Contrast checker → · Palette generator →

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