#7E2D82#7E2D82

#7E2D82 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.9% C 0.155 H 325.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7E2D82
RGBrgb(126, 45, 130)
HSLhsl(297, 49%, 34%)
HSVhsv(297, 65%, 51%)
CMYKcmyk(3.1%, 65.4%, 0%, 49%)
CIE-LABlab(33.83, 46.57, -31.33)
CIE-LCHlch(33.83, 56.13, 326.07°)
OKLaboklab(44.94% 0.1279 -0.0868)
OKLCHoklch(44.94% 0.155 325.8)
XYZxyz(13.5716, 7.9249, 21.9296)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D82 #31822D
analogous
#542D82 #7E2D82 #822D5C
triadic
#7E2D82 #827E2D #2D827E
tetradic
#7E2D82 #82542D #31822D #2D5C82
square
#7E2D82 #82542D #31822D #2D5C82
split-complementary
#7E2D82 #5C822D #2D8254
monochromatic
#260E27 #521D55 #7E2D82 #AA3DAF #C361C8

Accessibility & contrast

On white

8.12
#7E2D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E2D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D82
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D82#FFFFFF#000000##FFFFFF
##7E2D821.008.122.588.12
#FFFFFF8.121.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4985
Deuteranopia (green-blind)
#3E5380
Tritanopia (blue-blind)
#813953
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2d82;
/* rgb */ color: rgb(126, 45, 130);
/* oklch */ color: oklch(44.9% 0.155 325.8);
Tailwind
colors: {
  custom: {
    50: '#a66ca7',
    500: '#7e2d82',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d82;
$custom-light: #a66ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d82",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 297.176,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44944,
    "c": 0.15455,
    "h": 325.8
  },
  "luminance": 0.07924
}

Semantic roles & 50–950 ramp

primary
#7E2D82
secondary
#60AF5C
accent
#D85056
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2D82

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

Preview Lab → · Contrast checker → · Palette generator →

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