#7E2E82#7E2E82

#7E2E82 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.1% C 0.153 H 325.8°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7E2E82
RGBrgb(126, 46, 130)
HSLhsl(297, 48%, 35%)
HSVhsv(297, 65%, 51%)
CMYKcmyk(3.1%, 64.6%, 0%, 49%)
CIE-LABlab(33.99, 46.12, -31.07)
CIE-LCHlch(33.99, 55.61, 326.03°)
OKLaboklab(45.06% 0.1266 -0.086)
OKLCHoklch(45.06% 0.153 325.8)
XYZxyz(13.6102, 8.0021, 21.9425)
Luminance0.0800 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E82 #32822E
analogous
#542E82 #7E2E82 #822E5C
triadic
#7E2E82 #827E2E #2E827E
tetradic
#7E2E82 #82542E #32822E #2E5C82
square
#7E2E82 #82542E #32822E #2E5C82
split-complementary
#7E2E82 #5C822E #2E8254
monochromatic
#260E28 #521E55 #7E2E82 #AA3EAF #C363C8

Accessibility & contrast

On white

8.08
#7E2E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E2E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E82
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E82#FFFFFF#000000##FFFFFF
##7E2E821.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204985
Deuteranopia (green-blind)
#3F5380
Tritanopia (blue-blind)
#813A54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2e82;
/* rgb */ color: rgb(126, 46, 130);
/* oklch */ color: oklch(45.1% 0.153 325.8);
Tailwind
colors: {
  custom: {
    50: '#a66da7',
    500: '#7e2e82',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e82;
$custom-light: #a66da7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e82",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 130
  },
  "hsl": {
    "h": 297.143,
    "s": 47.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45061,
    "c": 0.15311,
    "h": 325.8
  },
  "luminance": 0.08001
}

Semantic roles & 50–950 ramp

primary
#7E2E82
secondary
#61AE5D
accent
#D75057
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2E82

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

Preview Lab → · Contrast checker → · Palette generator →

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