#7E328B#7E328B

#7E328B is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.1% C 0.156 H 321.6°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7E328B
RGBrgb(126, 50, 139)
HSLhsl(291, 47%, 37%)
HSVhsv(291, 64%, 55%)
CMYKcmyk(9.4%, 64%, 0%, 45.5%)
CIE-LABlab(35.17, 46.03, -34.77)
CIE-LCHlch(35.17, 57.69, 322.94°)
OKLaboklab(46.08% 0.122 -0.0968)
OKLCHoklch(46.08% 0.156 321.6)
XYZxyz(14.4045, 8.5816, 25.3188)
Luminance0.0858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E328B #3F8B32
analogous
#52328B #7E328B #8B326C
triadic
#7E328B #8B7E32 #328B7E
tetradic
#7E328B #8B5232 #3F8B32 #326C8B
square
#7E328B #8B5232 #3F8B32 #326C8B
split-complementary
#7E328B #6C8B32 #328B52
monochromatic
#2C1231 #55225E #7E328B #A742B8 #BD6DCA

Accessibility & contrast

On white

7.73
#7E328B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E328B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E328B
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E328B#FFFFFF#000000##FFFFFF
##7E328B1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4D8E
Deuteranopia (green-blind)
#3C5689
Tritanopia (blue-blind)
#7F405A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e328b;
/* rgb */ color: rgb(126, 50, 139);
/* oklch */ color: oklch(46.1% 0.156 321.6);
Tailwind
colors: {
  custom: {
    50: '#a66fad',
    500: '#7e328b',
    950: '#000000',
  },
}
SCSS
$custom: #7e328b;
$custom-light: #a66fad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e328b",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 139
  },
  "hsl": {
    "h": 291.236,
    "s": 47.09,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46081,
    "c": 0.15573,
    "h": 321.6
  },
  "luminance": 0.08581
}

Semantic roles & 50–950 ramp

primary
#7E328B
secondary
#72B267
accent
#D75165
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E328B

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

Preview Lab → · Contrast checker → · Palette generator →

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