#7E2E9F#7E2E9F

#7E2E9F is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.181 H 314.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7E2E9F
RGBrgb(126, 46, 159)
HSLhsl(282, 55%, 40%)
HSVhsv(282, 71%, 62%)
CMYKcmyk(20.8%, 71.1%, 0%, 37.6%)
CIE-LABlab(35.78, 51.96, -45.98)
CIE-LCHlch(35.78, 69.39, 318.49°)
OKLaboklab(46.92% 0.1259 -0.1296)
OKLCHoklch(46.92% 0.181 314.2)
XYZxyz(15.8381, 8.8933, 33.6764)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E9F #4F9F2E
analogous
#462E9F #7E2E9F #9F2E87
triadic
#7E2E9F #9F7E2E #2E9F7E
tetradic
#7E2E9F #9F462E #4F9F2E #2E879F
square
#7E2E9F #9F462E #4F9F2E #2E879F
split-complementary
#7E2E9F #879F2E #2E9F46
monochromatic
#331340 #582070 #7E2E9F #A142C8 #B971D6

Accessibility & contrast

On white

7.56
#7E2E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7E2E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E9F
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E9F#FFFFFF#000000##FFFFFF
##7E2E9F1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#28569C
Tritanopia (blue-blind)
#7B4563
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2e9f;
/* rgb */ color: rgb(126, 46, 159);
/* oklch */ color: oklch(46.9% 0.181 314.2);
Tailwind
colors: {
  custom: {
    50: '#a76ebc',
    500: '#7e2e9f',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e9f;
$custom-light: #a76ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e9f",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 282.478,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46924,
    "c": 0.18067,
    "h": 314.2
  },
  "luminance": 0.08893
}

Semantic roles & 50–950 ramp

primary
#7E2E9F
secondary
#83BE6B
accent
#DE4975
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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