#7E397E#7E397E

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

Color values

HEX#7E397E
RGBrgb(126, 57, 126)
HSLhsl(300, 38%, 36%)
HSVhsv(300, 55%, 49%)
CMYKcmyk(0%, 54.8%, 0%, 50.6%)
CIE-LABlab(35.73, 40.03, -25.84)
CIE-LCHlch(35.73, 47.64, 327.15°)
OKLaboklab(46.27% 0.1113 -0.071)
OKLCHoklch(46.27% 0.132 327.4)
XYZxyz(13.8330, 8.8690, 20.7179)
Luminance0.0887 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E397E #397E39
analogous
#5B397E #7E397E #7E395B
triadic
#7E397E #7E7E39 #397E7E
tetradic
#7E397E #7E5B39 #397E39 #395B7E
square
#7E397E #7E5B39 #397E39 #395B7E
split-complementary
#7E397E #5B7E39 #397E5B
monochromatic
#2A132A #542654 #7E397E #A84CA8 #BF72BF

Accessibility & contrast

On white

7.57
#7E397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7E397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E397E
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E397E#FFFFFF#000000##FFFFFF
##7E397E1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E80
Deuteranopia (green-blind)
#48577C
Tritanopia (blue-blind)
#824156
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e397e;
/* rgb */ color: rgb(126, 57, 126);
/* oklch */ color: oklch(46.3% 0.132 327.4);
Tailwind
colors: {
  custom: {
    50: '#a573a3',
    500: '#7e397e',
    950: '#000000',
  },
}
SCSS
$custom: #7e397e;
$custom-light: #a573a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e397e",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 37.705,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46265,
    "c": 0.13204,
    "h": 327.4
  },
  "luminance": 0.08868
}

Semantic roles & 50–950 ramp

primary
#7E397E
secondary
#6AA86A
accent
#CE5A5A
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#0F080F
muted
#7F7B7F

Preview Lab

Preview with #7E397E

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

Preview Lab → · Contrast checker → · Palette generator →

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