#7E3485#7E3485

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

Color values

HEX#7E3485
RGBrgb(126, 52, 133)
HSLhsl(295, 44%, 36%)
HSVhsv(295, 61%, 52%)
CMYKcmyk(5.3%, 60.9%, 0%, 47.8%)
CIE-LABlab(35.17, 43.89, -31.06)
CIE-LCHlch(35.17, 53.77, 324.72°)
OKLaboklab(45.98% 0.119 -0.086)
OKLCHoklch(45.98% 0.147 324.1)
XYZxyz(14.0654, 8.5858, 23.1021)
Luminance0.0858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3485 #3B8534
analogous
#563485 #7E3485 #853464
triadic
#7E3485 #857E34 #34857E
tetradic
#7E3485 #855634 #3B8534 #346485
square
#7E3485 #855634 #3B8534 #346485
split-complementary
#7E3485 #648534 #348556
monochromatic
#2B122D #542359 #7E3485 #A845B1 #BE6DC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E3485#FFFFFF#000000##FFFFFF
##7E34851.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)
#274D88
Deuteranopia (green-blind)
#415683
Tritanopia (blue-blind)
#803F57
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e3485;
/* rgb */ color: rgb(126, 52, 133);
/* oklch */ color: oklch(46.0% 0.147 324.1);
Tailwind
colors: {
  custom: {
    50: '#a670a9',
    500: '#7e3485',
    950: '#000000',
  },
}
SCSS
$custom: #7e3485;
$custom-light: #a670a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3485",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 133
  },
  "hsl": {
    "h": 294.815,
    "s": 43.784,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45977,
    "c": 0.14688,
    "h": 324.1
  },
  "luminance": 0.08585
}

Semantic roles & 50–950 ramp

primary
#7E3485
secondary
#6DAE67
accent
#D4545F
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E3485

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

Preview Lab → · Contrast checker → · Palette generator →

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