#7E2E96#7E2E96

#7E2E96 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.172 H 317.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7E2E96
RGBrgb(126, 46, 150)
HSLhsl(286, 53%, 38%)
HSVhsv(286, 69%, 59%)
CMYKcmyk(16%, 69.3%, 0%, 41.2%)
CIE-LABlab(35.19, 50.08, -41.47)
CIE-LCHlch(35.19, 65.02, 320.37°)
OKLaboklab(46.31% 0.1266 -0.1164)
OKLCHoklch(46.31% 0.172 317.4)
XYZxyz(15.0854, 8.5922, 29.7121)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E96 #46962E
analogous
#4A2E96 #7E2E96 #962E7A
triadic
#7E2E96 #967E2E #2E967E
tetradic
#7E2E96 #964A2E #46962E #2E7A96
square
#7E2E96 #964A2E #46962E #2E7A96
split-complementary
#7E2E96 #7A962E #2E964A
monochromatic
#2F1138 #572067 #7E2E96 #A53EC4 #BB6CD2

Accessibility & contrast

On white

7.73
#7E2E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E2E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E96
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E96#FFFFFF#000000##FFFFFF
##7E2E961.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#315594
Tritanopia (blue-blind)
#7D425E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2e96;
/* rgb */ color: rgb(126, 46, 150);
/* oklch */ color: oklch(46.3% 0.172 317.4);
Tailwind
colors: {
  custom: {
    50: '#a76eb5',
    500: '#7e2e96',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e96;
$custom-light: #a76eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e96",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 286.154,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46312,
    "c": 0.17196,
    "h": 317.4
  },
  "luminance": 0.08592
}

Semantic roles & 50–950 ramp

primary
#7E2E96
secondary
#7AB967
accent
#DC4B6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2E96

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

Preview Lab → · Contrast checker → · Palette generator →

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