#7E2E95#7E2E95

#7E2E95 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.2% C 0.171 H 317.8°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7E2E95
RGBrgb(126, 46, 149)
HSLhsl(287, 53%, 38%)
HSVhsv(287, 69%, 58%)
CMYKcmyk(15.4%, 69.1%, 0%, 41.6%)
CIE-LABlab(35.12, 49.87, -40.96)
CIE-LCHlch(35.12, 64.54, 320.60°)
OKLaboklab(46.25% 0.1267 -0.1149)
OKLCHoklch(46.25% 0.171 317.8)
XYZxyz(15.0052, 8.5602, 29.2898)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E95 #45952E
analogous
#4A2E95 #7E2E95 #952E78
triadic
#7E2E95 #957E2E #2E957E
tetradic
#7E2E95 #954A2E #45952E #2E7895
square
#7E2E95 #954A2E #45952E #2E7895
split-complementary
#7E2E95 #78952E #2E954A
monochromatic
#2F1137 #562066 #7E2E95 #A53DC3 #BB6CD2

Accessibility & contrast

On white

7.74
#7E2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E2E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E95
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E95#FFFFFF#000000##FFFFFF
##7E2E951.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#325593
Tritanopia (blue-blind)
#7D415E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2e95;
/* rgb */ color: rgb(126, 46, 149);
/* oklch */ color: oklch(46.2% 0.171 317.8);
Tailwind
colors: {
  custom: {
    50: '#a76db5',
    500: '#7e2e95',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e95;
$custom-light: #a76db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e95",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 286.602,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46246,
    "c": 0.17099,
    "h": 317.8
  },
  "luminance": 0.0856
}

Semantic roles & 50–950 ramp

primary
#7E2E95
secondary
#79B966
accent
#DC4C6C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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