#7E2E91#7E2E91

#7E2E91 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.167 H 319.3°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7E2E91
RGBrgb(126, 46, 145)
HSLhsl(288, 52%, 37%)
HSVhsv(288, 68%, 57%)
CMYKcmyk(13.1%, 68.3%, 0%, 43.1%)
CIE-LABlab(34.87, 49.06, -38.92)
CIE-LCHlch(34.87, 62.62, 321.57°)
OKLaboklab(45.99% 0.1268 -0.1089)
OKLCHoklch(45.99% 0.167 319.3)
XYZxyz(14.6914, 8.4346, 27.6368)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E91 #41912E
analogous
#4D2E91 #7E2E91 #912E72
triadic
#7E2E91 #917E2E #2E917E
tetradic
#7E2E91 #914D2E #41912E #2E7291
square
#7E2E91 #914D2E #41912E #2E7291
split-complementary
#7E2E91 #72912E #2E914D
monochromatic
#2D1134 #561F63 #7E2E91 #A63DBF #BC6AD0

Accessibility & contrast

On white

7.82
#7E2E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7E2E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E91
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E91#FFFFFF#000000##FFFFFF
##7E2E911.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084D94
Deuteranopia (green-blind)
#35558F
Tritanopia (blue-blind)
#7E405C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2e91;
/* rgb */ color: rgb(126, 46, 145);
/* oklch */ color: oklch(46.0% 0.167 319.3);
Tailwind
colors: {
  custom: {
    50: '#a66db2',
    500: '#7e2e91',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e91;
$custom-light: #a66db2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e91",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 145
  },
  "hsl": {
    "h": 288.485,
    "s": 51.832,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45985,
    "c": 0.16717,
    "h": 319.3
  },
  "luminance": 0.08434
}

Semantic roles & 50–950 ramp

primary
#7E2E91
secondary
#74B764
accent
#DB4D68
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2E91

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

Preview Lab → · Contrast checker → · Palette generator →

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