#7E2A86#7E2A86

#7E2A86 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.162 H 324.2°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7E2A86
RGBrgb(126, 42, 134)
HSLhsl(295, 52%, 35%)
HSVhsv(295, 69%, 53%)
CMYKcmyk(6%, 68.7%, 0%, 47.5%)
CIE-LABlab(33.59, 48.62, -34.18)
CIE-LCHlch(33.59, 59.44, 324.89°)
OKLaboklab(44.85% 0.1316 -0.0951)
OKLCHoklch(44.85% 0.162 324.2)
XYZxyz(13.7349, 7.8136, 23.3344)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A86 #32862A
analogous
#502A86 #7E2A86 #862A60
triadic
#7E2A86 #867E2A #2A867E
tetradic
#7E2A86 #86502A #32862A #2A6086
square
#7E2A86 #86502A #32862A #2A6086
split-complementary
#7E2A86 #60862A #2A8650
monochromatic
#260D29 #521B57 #7E2A86 #AA39B5 #C35ECD

Accessibility & contrast

On white

8.19
#7E2A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E2A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A86
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A86#FFFFFF#000000##FFFFFF
##7E2A861.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154989
Deuteranopia (green-blind)
#3A5284
Tritanopia (blue-blind)
#803954
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2a86;
/* rgb */ color: rgb(126, 42, 134);
/* oklch */ color: oklch(44.8% 0.162 324.2);
Tailwind
colors: {
  custom: {
    50: '#a66baa',
    500: '#7e2a86',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a86;
$custom-light: #a66baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a86",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 294.783,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44849,
    "c": 0.16234,
    "h": 324.2
  },
  "luminance": 0.07813
}

Semantic roles & 50–950 ramp

primary
#7E2A86
secondary
#61B25A
accent
#DC4C59
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2A86

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

Preview Lab → · Contrast checker → · Palette generator →

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