#7E397F#7E397F

#7E397F is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.3% C 0.133 H 326.9°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7E397F
RGBrgb(126, 57, 127)
HSLhsl(299, 38%, 36%)
HSVhsv(299, 55%, 50%)
CMYKcmyk(0.8%, 55.1%, 0%, 50.2%)
CIE-LABlab(35.78, 40.22, -26.38)
CIE-LCHlch(35.78, 48.10, 326.73°)
OKLaboklab(46.32% 0.1114 -0.0726)
OKLCHoklch(46.32% 0.133 326.9)
XYZxyz(13.8978, 8.8950, 21.0594)
Luminance0.0889 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E397F #3A7F39
analogous
#5B397F #7E397F #7F395D
triadic
#7E397F #7F7E39 #397F7E
tetradic
#7E397F #7F5B39 #3A7F39 #395D7F
square
#7E397F #7F5B39 #3A7F39 #395D7F
split-complementary
#7E397F #5D7F39 #397F5B
monochromatic
#2A132B #542655 #7E397F #A84CA9 #BF72C0

Accessibility & contrast

On white

7.56
#7E397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E397F
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E397F#FFFFFF#000000##FFFFFF
##7E397F1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E81
Deuteranopia (green-blind)
#47577D
Tritanopia (blue-blind)
#814156
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e397f;
/* rgb */ color: rgb(126, 57, 127);
/* oklch */ color: oklch(46.3% 0.133 326.9);
Tailwind
colors: {
  custom: {
    50: '#a573a4',
    500: '#7e397f',
    950: '#000000',
  },
}
SCSS
$custom: #7e397f;
$custom-light: #a573a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e397f",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 299.143,
    "s": 38.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46319,
    "c": 0.133,
    "h": 326.9
  },
  "luminance": 0.08894
}

Semantic roles & 50–950 ramp

primary
#7E397F
secondary
#6CA96B
accent
#CE5A5B
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7E397F

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

Preview Lab → · Contrast checker → · Palette generator →

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