#7E2386#7E2386

#7E2386 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.1% C 0.171 H 324.4°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7E2386
RGBrgb(126, 35, 134)
HSLhsl(295, 59%, 33%)
HSVhsv(295, 74%, 53%)
CMYKcmyk(6%, 73.9%, 0%, 47.5%)
CIE-LABlab(32.61, 51.39, -35.74)
CIE-LCHlch(32.61, 62.60, 325.18°)
OKLaboklab(44.15% 0.1392 -0.0995)
OKLCHoklch(44.15% 0.171 324.4)
XYZxyz(13.5079, 7.3598, 23.2587)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2386 #2B8623
analogous
#4D2386 #7E2386 #86235C
triadic
#7E2386 #867E23 #23867E
tetradic
#7E2386 #864D23 #2B8623 #235C86
square
#7E2386 #864D23 #2B8623 #235C86
split-complementary
#7E2386 #5C8623 #23864D
monochromatic
#230A25 #501655 #7E2386 #AC30B7 #C752D2

Accessibility & contrast

On white

8.50
#7E2386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7E2386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2386
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2386#FFFFFF#000000##FFFFFF
##7E23861.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024689
Deuteranopia (green-blind)
#365084
Tritanopia (blue-blind)
#813452
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2386;
/* rgb */ color: rgb(126, 35, 134);
/* oklch */ color: oklch(44.1% 0.171 324.4);
Tailwind
colors: {
  custom: {
    50: '#a768aa',
    500: '#7e2386',
    950: '#000000',
  },
}
SCSS
$custom: #7e2386;
$custom-light: #a768aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2386",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 295.152,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44147,
    "c": 0.17115,
    "h": 324.4
  },
  "luminance": 0.07359
}

Semantic roles & 50–950 ramp

primary
#7E2386
secondary
#58B54F
accent
#E24653
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2386

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

Preview Lab → · Contrast checker → · Palette generator →

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