#7E2A82#7E2A82

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

Color values

HEX#7E2A82
RGBrgb(126, 42, 130)
HSLhsl(297, 51%, 34%)
HSVhsv(297, 68%, 51%)
CMYKcmyk(3.1%, 67.7%, 0%, 49%)
CIE-LABlab(33.36, 47.87, -32.07)
CIE-LCHlch(33.36, 57.62, 326.18°)
OKLaboklab(44.61% 0.1315 -0.0889)
OKLCHoklch(44.61% 0.159 325.9)
XYZxyz(13.4611, 7.7041, 21.8928)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A82 #2E822A
analogous
#522A82 #7E2A82 #822A5A
triadic
#7E2A82 #827E2A #2A827E
tetradic
#7E2A82 #82522A #2E822A #2A5A82
square
#7E2A82 #82522A #2E822A #2A5A82
split-complementary
#7E2A82 #5A822A #2A8252
monochromatic
#240C25 #511B54 #7E2A82 #AB39B0 #C55CCA

Accessibility & contrast

On white

8.27
#7E2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A82
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A82#FFFFFF#000000##FFFFFF
##7E2A821.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4885
Deuteranopia (green-blind)
#3C5280
Tritanopia (blue-blind)
#813752
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2a82;
/* rgb */ color: rgb(126, 42, 130);
/* oklch */ color: oklch(44.6% 0.159 325.9);
Tailwind
colors: {
  custom: {
    50: '#a66ba7',
    500: '#7e2a82',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a82;
$custom-light: #a66ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a82",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 297.273,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44606,
    "c": 0.15876,
    "h": 325.9
  },
  "luminance": 0.07703
}

Semantic roles & 50–950 ramp

primary
#7E2A82
secondary
#5CB058
accent
#DB4D54
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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