#7E2886#7E2886

#7E2886 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.6% C 0.165 H 324.2°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7E2886
RGBrgb(126, 40, 134)
HSLhsl(295, 54%, 34%)
HSVhsv(295, 70%, 53%)
CMYKcmyk(6%, 70.1%, 0%, 47.5%)
CIE-LABlab(33.30, 49.45, -34.65)
CIE-LCHlch(33.30, 60.38, 324.98°)
OKLaboklab(44.64% 0.1339 -0.0964)
OKLCHoklch(44.64% 0.165 324.2)
XYZxyz(13.6657, 7.6753, 23.3113)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2886 #308628
analogous
#4F2886 #7E2886 #86285F
triadic
#7E2886 #867E28 #28867E
tetradic
#7E2886 #864F28 #308628 #285F86
square
#7E2886 #864F28 #308628 #285F86
split-complementary
#7E2886 #5F8628 #28864F
monochromatic
#250C28 #521A57 #7E2886 #AA36B5 #C45BCE

Accessibility & contrast

On white

8.28
#7E2886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E2886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2886
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2886#FFFFFF#000000##FFFFFF
##7E28861.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104889
Deuteranopia (green-blind)
#395284
Tritanopia (blue-blind)
#813754
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2886;
/* rgb */ color: rgb(126, 40, 134);
/* oklch */ color: oklch(44.6% 0.165 324.2);
Tailwind
colors: {
  custom: {
    50: '#a66aaa',
    500: '#7e2886',
    950: '#000000',
  },
}
SCSS
$custom: #7e2886;
$custom-light: #a66aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2886",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 294.894,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44638,
    "c": 0.16498,
    "h": 324.2
  },
  "luminance": 0.07674
}

Semantic roles & 50–950 ramp

primary
#7E2886
secondary
#5FB357
accent
#DD4A57
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2886

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

Preview Lab → · Contrast checker → · Palette generator →

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