#7E2486#7E2486

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

Color values

HEX#7E2486
RGBrgb(126, 36, 134)
HSLhsl(295, 58%, 33%)
HSVhsv(295, 73%, 53%)
CMYKcmyk(6%, 73.1%, 0%, 47.5%)
CIE-LABlab(32.74, 51.02, -35.53)
CIE-LCHlch(32.74, 62.17, 325.14°)
OKLaboklab(44.24% 0.1382 -0.0989)
OKLCHoklch(44.24% 0.17 324.4)
XYZxyz(13.5378, 7.4194, 23.2687)
Luminance0.0742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2486 #2C8624
analogous
#4D2486 #7E2486 #86245D
triadic
#7E2486 #867E24 #24867E
tetradic
#7E2486 #864D24 #2C8624 #245D86
square
#7E2486 #864D24 #2C8624 #245D86
split-complementary
#7E2486 #5D8624 #24864D
monochromatic
#230A26 #511756 #7E2486 #AB31B6 #C753D1

Accessibility & contrast

On white

8.45
#7E2486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7E2486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2486
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2486#FFFFFF#000000##FFFFFF
##7E24861.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054689
Deuteranopia (green-blind)
#365184
Tritanopia (blue-blind)
#813553
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2486;
/* rgb */ color: rgb(126, 36, 134);
/* oklch */ color: oklch(44.2% 0.170 324.4);
Tailwind
colors: {
  custom: {
    50: '#a768aa',
    500: '#7e2486',
    950: '#000000',
  },
}
SCSS
$custom: #7e2486;
$custom-light: #a768aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2486",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 134
  },
  "hsl": {
    "h": 295.102,
    "s": 57.647,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44241,
    "c": 0.16997,
    "h": 324.4
  },
  "luminance": 0.07419
}

Semantic roles & 50–950 ramp

primary
#7E2486
secondary
#59B551
accent
#E14753
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2486

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

Preview Lab → · Contrast checker → · Palette generator →

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