#7E3580#7E3580

#7E3580 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 45.8% C 0.141 H 326.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7E3580
RGBrgb(126, 53, 128)
HSLhsl(298, 41%, 35%)
HSVhsv(298, 59%, 50%)
CMYKcmyk(1.6%, 58.6%, 0%, 49.8%)
CIE-LABlab(35.09, 42.43, -28.10)
CIE-LCHlch(35.09, 50.89, 326.49°)
OKLaboklab(45.83% 0.1172 -0.0775)
OKLCHoklch(45.83% 0.141 326.5)
XYZxyz(13.7733, 8.5411, 21.3410)
Luminance0.0854 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3580 #378035
analogous
#583580 #7E3580 #80355C
triadic
#7E3580 #807E35 #35807E
tetradic
#7E3580 #805835 #378035 #355C80
square
#7E3580 #805835 #378035 #355C80
split-complementary
#7E3580 #5C8035 #358058
monochromatic
#291129 #532355 #7E3580 #A947AB #C06DC3

Accessibility & contrast

On white

7.75
#7E3580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E3580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3580
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3580#FFFFFF#000000##FFFFFF
##7E35801.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4D82
Deuteranopia (green-blind)
#44567E
Tritanopia (blue-blind)
#813E55
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e3580;
/* rgb */ color: rgb(126, 53, 128);
/* oklch */ color: oklch(45.8% 0.141 326.5);
Tailwind
colors: {
  custom: {
    50: '#a671a5',
    500: '#7e3580',
    950: '#000000',
  },
}
SCSS
$custom: #7e3580;
$custom-light: #a671a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3580",
  "rgb": {
    "r": 126,
    "g": 53,
    "b": 128
  },
  "hsl": {
    "h": 298.4,
    "s": 41.436,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45825,
    "c": 0.14054,
    "h": 326.5
  },
  "luminance": 0.0854
}

Semantic roles & 50–950 ramp

primary
#7E3580
secondary
#68AB66
accent
#D1575A
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7E3580

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

Preview Lab → · Contrast checker → · Palette generator →

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