#7E2E8E#7E2E8E

#7E2E8E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.164 H 320.6°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7E2E8E
RGBrgb(126, 46, 142)
HSLhsl(290, 51%, 37%)
HSVhsv(290, 68%, 56%)
CMYKcmyk(11.3%, 67.6%, 0%, 44.3%)
CIE-LABlab(34.69, 48.46, -37.37)
CIE-LCHlch(34.69, 61.20, 322.36°)
OKLaboklab(45.79% 0.1269 -0.1044)
OKLCHoklch(45.79% 0.164 320.6)
XYZxyz(14.4631, 8.3433, 26.4345)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E8E #3E8E2E
analogous
#4E2E8E #7E2E8E #8E2E6E
triadic
#7E2E8E #8E7E2E #2E8E7E
tetradic
#7E2E8E #8E4E2E #3E8E2E #2E6E8E
square
#7E2E8E #8E4E2E #3E8E2E #2E6E8E
split-complementary
#7E2E8E #6E8E2E #2E8E4E
monochromatic
#2C1032 #551F60 #7E2E8E #A73DBC #BD68CE

Accessibility & contrast

On white

7.87
#7E2E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E2E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E8E
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E8E#FFFFFF#000000##FFFFFF
##7E2E8E1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104C91
Deuteranopia (green-blind)
#37548C
Tritanopia (blue-blind)
#7F3F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2e8e;
/* rgb */ color: rgb(126, 46, 142);
/* oklch */ color: oklch(45.8% 0.164 320.6);
Tailwind
colors: {
  custom: {
    50: '#a66daf',
    500: '#7e2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e8e;
$custom-light: #a66daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e8e",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 290,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45793,
    "c": 0.1643,
    "h": 320.6
  },
  "luminance": 0.08343
}

Semantic roles & 50–950 ramp

primary
#7E2E8E
secondary
#70B563
accent
#DB4D65
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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