#7E3395#7E3395

#7E3395 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.8% C 0.164 H 317.4°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#7E3395
RGBrgb(126, 51, 149)
HSLhsl(286, 49%, 39%)
HSVhsv(286, 66%, 58%)
CMYKcmyk(15.4%, 65.8%, 0%, 41.6%)
CIE-LABlab(35.93, 47.62, -39.67)
CIE-LCHlch(35.93, 61.97, 320.20°)
OKLaboklab(46.83% 0.1208 -0.1111)
OKLCHoklch(46.83% 0.164 317.4)
XYZxyz(15.2120, 8.9738, 29.3588)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3395 #4A9533
analogous
#4D3395 #7E3395 #95337B
triadic
#7E3395 #957E33 #33957E
tetradic
#7E3395 #954D33 #4A9533 #337B95
square
#7E3395 #954D33 #4A9533 #337B95
split-complementary
#7E3395 #7B9533 #33954D
monochromatic
#31143A #572367 #7E3395 #A346C0 #BA73CF

Accessibility & contrast

On white

7.51
#7E3395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7E3395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3395
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3395#FFFFFF#000000##FFFFFF
##7E33951.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105098
Deuteranopia (green-blind)
#365793
Tritanopia (blue-blind)
#7D455F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e3395;
/* rgb */ color: rgb(126, 51, 149);
/* oklch */ color: oklch(46.8% 0.164 317.4);
Tailwind
colors: {
  custom: {
    50: '#a670b5',
    500: '#7e3395',
    950: '#000000',
  },
}
SCSS
$custom: #7e3395;
$custom-light: #a670b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3395",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 149
  },
  "hsl": {
    "h": 285.918,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46829,
    "c": 0.16411,
    "h": 317.4
  },
  "luminance": 0.08973
}

Semantic roles & 50–950 ramp

primary
#7E3395
secondary
#7EB76C
accent
#D94F6F
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E3395

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

Preview Lab → · Contrast checker → · Palette generator →

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