#7E397A#7E397A

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

Color values

HEX#7E397A
RGBrgb(126, 57, 122)
HSLhsl(303, 38%, 36%)
HSVhsv(303, 55%, 49%)
CMYKcmyk(0%, 54.8%, 3.2%, 50.6%)
CIE-LABlab(35.53, 39.26, -23.66)
CIE-LCHlch(35.53, 45.84, 328.92°)
OKLaboklab(46.06% 0.1107 -0.0648)
OKLCHoklch(46.06% 0.128 329.7)
XYZxyz(13.5800, 8.7679, 19.3857)
Luminance0.0877 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E397A #397E3D
analogous
#5F397E #7E397A #7E3957
triadic
#7E397A #7A7E39 #397A7E
tetradic
#7E397A #7E5F39 #397E3D #39577E
square
#7E397A #7E5F39 #397E3D #39577E
split-complementary
#7E397A #577E39 #397E5F
monochromatic
#2A1328 #542651 #7E397A #A84CA3 #BF72BB

Accessibility & contrast

On white

7.63
#7E397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7E397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E397A
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E397A#FFFFFF#000000##FFFFFF
##7E397A1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354E7C
Deuteranopia (green-blind)
#495778
Tritanopia (blue-blind)
#823F54
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e397a;
/* rgb */ color: rgb(126, 57, 122);
/* oklch */ color: oklch(46.1% 0.128 329.7);
Tailwind
colors: {
  custom: {
    50: '#a573a0',
    500: '#7e397a',
    950: '#000000',
  },
}
SCSS
$custom: #7e397a;
$custom-light: #a573a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e397a",
  "rgb": {
    "r": 126,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 303.478,
    "s": 37.705,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46055,
    "c": 0.12824,
    "h": 329.7
  },
  "luminance": 0.08767
}

Semantic roles & 50–950 ramp

primary
#7E397A
secondary
#6AA86E
accent
#CE615A
background
#FAF7F9
surface
#F4EDF2
border
#CEC8CC
text
#0F080F
muted
#7F7B7E

Preview Lab

Preview with #7E397A

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

Preview Lab → · Contrast checker → · Palette generator →

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