#7E2E9D#7E2E9D

#7E2E9D is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.179 H 314.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7E2E9D
RGBrgb(126, 46, 157)
HSLhsl(283, 55%, 40%)
HSVhsv(283, 71%, 62%)
CMYKcmyk(19.7%, 70.7%, 0%, 38.4%)
CIE-LABlab(35.64, 51.54, -44.99)
CIE-LCHlch(35.64, 68.41, 318.88°)
OKLaboklab(46.79% 0.1261 -0.1267)
OKLCHoklch(46.79% 0.179 314.9)
XYZxyz(15.6660, 8.8245, 32.7698)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E9D #4D9D2E
analogous
#462E9D #7E2E9D #9D2E85
triadic
#7E2E9D #9D7E2E #2E9D7E
tetradic
#7E2E9D #9D462E #4D9D2E #2E859D
square
#7E2E9D #9D462E #4D9D2E #2E859D
split-complementary
#7E2E9D #859D2E #2E9D46
monochromatic
#32123E #58206E #7E2E9D #A241C7 #B970D5

Accessibility & contrast

On white

7.60
#7E2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7E2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E9D
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E9D#FFFFFF#000000##FFFFFF
##7E2E9D1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#2A569A
Tritanopia (blue-blind)
#7B4562
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2e9d;
/* rgb */ color: rgb(126, 46, 157);
/* oklch */ color: oklch(46.8% 0.179 314.9);
Tailwind
colors: {
  custom: {
    50: '#a76eba',
    500: '#7e2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e9d;
$custom-light: #a76eba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e9d",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 283.243,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46786,
    "c": 0.17872,
    "h": 314.9
  },
  "luminance": 0.08824
}

Semantic roles & 50–950 ramp

primary
#7E2E9D
secondary
#81BD6A
accent
#DE4A73
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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