#7E3096#7E3096

#7E3096 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.5% C 0.169 H 317.3°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7E3096
RGBrgb(126, 48, 150)
HSLhsl(286, 52%, 39%)
HSVhsv(286, 68%, 59%)
CMYKcmyk(16%, 68%, 0%, 41.2%)
CIE-LABlab(35.50, 49.20, -40.97)
CIE-LCHlch(35.50, 64.02, 320.22°)
OKLaboklab(46.54% 0.1243 -0.1149)
OKLCHoklch(46.54% 0.169 317.3)
XYZxyz(15.1654, 8.7522, 29.7387)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3096 #489630
analogous
#4B3096 #7E3096 #96307B
triadic
#7E3096 #967E30 #30967E
tetradic
#7E3096 #964B30 #489630 #307B96
square
#7E3096 #964B30 #489630 #307B96
split-complementary
#7E3096 #7B9630 #30964B
monochromatic
#301239 #572168 #7E3096 #A441C2 #BA6FD1

Accessibility & contrast

On white

7.64
#7E3096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7E3096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3096
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3096#FFFFFF#000000##FFFFFF
##7E30961.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014F99
Deuteranopia (green-blind)
#335694
Tritanopia (blue-blind)
#7D435F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e3096;
/* rgb */ color: rgb(126, 48, 150);
/* oklch */ color: oklch(46.5% 0.169 317.3);
Tailwind
colors: {
  custom: {
    50: '#a76fb5',
    500: '#7e3096',
    950: '#000000',
  },
}
SCSS
$custom: #7e3096;
$custom-light: #a76fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3096",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 150
  },
  "hsl": {
    "h": 285.882,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46539,
    "c": 0.16927,
    "h": 317.3
  },
  "luminance": 0.08752
}

Semantic roles & 50–950 ramp

primary
#7E3096
secondary
#7CB969
accent
#DB4D6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E3096

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

Preview Lab → · Contrast checker → · Palette generator →

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