#7E3296#7E3296

#7E3296 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.167 H 317.1°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7E3296
RGBrgb(126, 50, 150)
HSLhsl(286, 50%, 39%)
HSVhsv(286, 67%, 59%)
CMYKcmyk(16%, 66.7%, 0%, 41.2%)
CIE-LABlab(35.83, 48.29, -40.44)
CIE-LCHlch(35.83, 62.99, 320.05°)
OKLaboklab(46.77% 0.1219 -0.1134)
OKLCHoklch(46.77% 0.167 317.1)
XYZxyz(15.2490, 8.9194, 29.7666)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3296 #4A9632
analogous
#4C3296 #7E3296 #96327C
triadic
#7E3296 #967E32 #32967E
tetradic
#7E3296 #964C32 #4A9632 #327C96
square
#7E3296 #964C32 #4A9632 #327C96
split-complementary
#7E3296 #7C9632 #32964C
monochromatic
#31133A #572368 #7E3296 #A344C1 #BA72D0

Accessibility & contrast

On white

7.54
#7E3296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E3296
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3296#FFFFFF#000000##FFFFFF
##7E32961.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095099
Deuteranopia (green-blind)
#345794
Tritanopia (blue-blind)
#7D4460
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e3296;
/* rgb */ color: rgb(126, 50, 150);
/* oklch */ color: oklch(46.8% 0.167 317.1);
Tailwind
colors: {
  custom: {
    50: '#a670b5',
    500: '#7e3296',
    950: '#000000',
  },
}
SCSS
$custom: #7e3296;
$custom-light: #a670b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3296",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 150
  },
  "hsl": {
    "h": 285.6,
    "s": 50,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46774,
    "c": 0.16651,
    "h": 317.1
  },
  "luminance": 0.08919
}

Semantic roles & 50–950 ramp

primary
#7E3296
secondary
#7EB86C
accent
#DA4E70
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E3296

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

Preview Lab → · Contrast checker → · Palette generator →

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