#7E2986#7E2986

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

Color values

HEX#7E2986
RGBrgb(126, 41, 134)
HSLhsl(295, 53%, 34%)
HSVhsv(295, 69%, 53%)
CMYKcmyk(6%, 69.4%, 0%, 47.5%)
CIE-LABlab(33.44, 49.04, -34.42)
CIE-LCHlch(33.44, 59.91, 324.94°)
OKLaboklab(44.74% 0.1328 -0.0957)
OKLCHoklch(44.74% 0.164 324.2)
XYZxyz(13.6998, 7.7435, 23.3227)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2986 #318629
analogous
#502986 #7E2986 #862960
triadic
#7E2986 #867E29 #29867E
tetradic
#7E2986 #865029 #318629 #296086
square
#7E2986 #865029 #318629 #296086
split-complementary
#7E2986 #608629 #298650
monochromatic
#260C28 #521B57 #7E2986 #AA37B5 #C35CCD

Accessibility & contrast

On white

8.24
#7E2986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E2986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2986
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2986#FFFFFF#000000##FFFFFF
##7E29861.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124889
Deuteranopia (green-blind)
#395284
Tritanopia (blue-blind)
#803854
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2986;
/* rgb */ color: rgb(126, 41, 134);
/* oklch */ color: oklch(44.7% 0.164 324.2);
Tailwind
colors: {
  custom: {
    50: '#a66aaa',
    500: '#7e2986',
    950: '#000000',
  },
}
SCSS
$custom: #7e2986;
$custom-light: #a66aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2986",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 294.839,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44742,
    "c": 0.16367,
    "h": 324.2
  },
  "luminance": 0.07743
}

Semantic roles & 50–950 ramp

primary
#7E2986
secondary
#60B358
accent
#DD4B58
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2986

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

Preview Lab → · Contrast checker → · Palette generator →

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