#7E328C#7E328C

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

Color values

HEX#7E328C
RGBrgb(126, 50, 140)
HSLhsl(291, 47%, 37%)
HSVhsv(291, 64%, 55%)
CMYKcmyk(10%, 64.3%, 0%, 45.1%)
CIE-LABlab(35.22, 46.24, -35.29)
CIE-LCHlch(35.22, 58.17, 322.65°)
OKLaboklab(46.14% 0.122 -0.0984)
OKLCHoklch(46.14% 0.157 321.1)
XYZxyz(14.4779, 8.6110, 25.7053)
Luminance0.0861 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E328C #408C32
analogous
#51328C #7E328C #8C326D
triadic
#7E328C #8C7E32 #328C7E
tetradic
#7E328C #8C5132 #408C32 #326D8C
square
#7E328C #8C5132 #408C32 #326D8C
split-complementary
#7E328C #6D8C32 #328C51
monochromatic
#2D1232 #55225F #7E328C #A742B9 #BC6DCB

Accessibility & contrast

On white

7.71
#7E328C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E328C
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E328C#FFFFFF#000000##FFFFFF
##7E328C1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e328c;
/* rgb */ color: rgb(126, 50, 140);
/* oklch */ color: oklch(46.1% 0.157 321.1);
Tailwind
colors: {
  custom: {
    50: '#a66fae',
    500: '#7e328c',
    950: '#000000',
  },
}
SCSS
$custom: #7e328c;
$custom-light: #a66fae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e328c",
  "rgb": {
    "r": 126,
    "g": 50,
    "b": 140
  },
  "hsl": {
    "h": 290.667,
    "s": 47.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46142,
    "c": 0.15669,
    "h": 321.1
  },
  "luminance": 0.0861
}

Semantic roles & 50–950 ramp

primary
#7E328C
secondary
#73B367
accent
#D75166
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E328C

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

Preview Lab → · Contrast checker → · Palette generator →

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