#7E2782#7E2782

#7E2782 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.3% C 0.163 H 326.0°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#7E2782
RGBrgb(126, 39, 130)
HSLhsl(297, 54%, 33%)
HSVhsv(297, 70%, 51%)
CMYKcmyk(3.1%, 70%, 0%, 49%)
CIE-LABlab(32.92, 49.11, -32.77)
CIE-LCHlch(32.92, 59.04, 326.29°)
OKLaboklab(44.29% 0.135 -0.0909)
OKLCHoklch(44.29% 0.163 326)
XYZxyz(13.3587, 7.4992, 21.8586)
Luminance0.0750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2782 #2B8227
analogous
#502782 #7E2782 #822758
triadic
#7E2782 #827E27 #27827E
tetradic
#7E2782 #825027 #2B8227 #275882
square
#7E2782 #825027 #2B8227 #275882
split-complementary
#7E2782 #588227 #278250
monochromatic
#230B24 #501953 #7E2782 #AC35B1 #C757CD

Accessibility & contrast

On white

8.40
#7E2782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7E2782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2782
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2782#FFFFFF#000000##FFFFFF
##7E27821.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154685
Deuteranopia (green-blind)
#3B5180
Tritanopia (blue-blind)
#813551
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2782;
/* rgb */ color: rgb(126, 39, 130);
/* oklch */ color: oklch(44.3% 0.163 326.0);
Tailwind
colors: {
  custom: {
    50: '#a669a7',
    500: '#7e2782',
    950: '#000000',
  },
}
SCSS
$custom: #7e2782;
$custom-light: #a669a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2782",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 297.363,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44288,
    "c": 0.16275,
    "h": 326
  },
  "luminance": 0.07498
}

Semantic roles & 50–950 ramp

primary
#7E2782
secondary
#58B153
accent
#DD4B51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2782

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

Preview Lab → · Contrast checker → · Palette generator →

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