#7E397B#7E397B

#7E397B is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.1% C 0.129 H 329.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7E397B
RGBrgb(126, 57, 123)
HSLhsl(303, 38%, 36%)
HSVhsv(303, 55%, 49%)
CMYKcmyk(0%, 54.8%, 2.4%, 50.6%)
CIE-LABlab(35.58, 39.45, -24.21)
CIE-LCHlch(35.58, 46.29, 328.47°)
OKLaboklab(46.11% 0.1108 -0.0664)
OKLCHoklch(46.11% 0.129 329.1)
XYZxyz(13.6423, 8.7928, 19.7137)
Luminance0.0879 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E397B #397E3C
analogous
#5E397E #7E397B #7E3958
triadic
#7E397B #7B7E39 #397B7E
tetradic
#7E397B #7E5E39 #397E3C #39587E
square
#7E397B #7E5E39 #397E3C #39587E
split-complementary
#7E397B #587E39 #397E5E
monochromatic
#2A1329 #542652 #7E397B #A84CA4 #BF72BC

Accessibility & contrast

On white

7.61
#7E397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7E397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E397B
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E397B#FFFFFF#000000##FFFFFF
##7E397B1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344E7D
Deuteranopia (green-blind)
#495779
Tritanopia (blue-blind)
#824054
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e397b;
/* rgb */ color: rgb(126, 57, 123);
/* oklch */ color: oklch(46.1% 0.129 329.1);
Tailwind
colors: {
  custom: {
    50: '#a573a1',
    500: '#7e397b',
    950: '#000000',
  },
}
SCSS
$custom: #7e397b;
$custom-light: #a573a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e397b",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 302.609,
    "s": 37.705,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46107,
    "c": 0.12919,
    "h": 329.1
  },
  "luminance": 0.08792
}

Semantic roles & 50–950 ramp

primary
#7E397B
secondary
#6AA86D
accent
#CE5F5A
background
#FAF7F9
surface
#F4EDF2
border
#CEC8CC
text
#0F080F
muted
#7F7B7E

Preview Lab

Preview with #7E397B

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

Preview Lab → · Contrast checker → · Palette generator →

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