#7E387D#7E387D

#7E387D is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.1% C 0.133 H 328.0°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7E387D
RGBrgb(126, 56, 125)
HSLhsl(301, 38%, 36%)
HSVhsv(301, 56%, 49%)
CMYKcmyk(0%, 55.6%, 0.8%, 50.6%)
CIE-LABlab(35.49, 40.35, -25.60)
CIE-LCHlch(35.49, 47.78, 327.61°)
OKLaboklab(46.07% 0.1126 -0.0703)
OKLCHoklch(46.07% 0.133 328)
XYZxyz(13.7198, 8.7455, 20.3635)
Luminance0.0874 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E387D #387E39
analogous
#5C387E #7E387D #7E385A
triadic
#7E387D #7D7E38 #387D7E
tetradic
#7E387D #7E5C38 #387E39 #385A7E
square
#7E387D #7E5C38 #387E39 #385A7E
split-complementary
#7E387D #5A7E38 #387E5C
monochromatic
#291229 #542553 #7E387D #A84BA7 #C071BF

Accessibility & contrast

On white

7.64
#7E387D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E387D
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E387D#FFFFFF#000000##FFFFFF
##7E387D1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E7F
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#824055
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e387d;
/* rgb */ color: rgb(126, 56, 125);
/* oklch */ color: oklch(46.1% 0.133 328.0);
Tailwind
colors: {
  custom: {
    50: '#a572a3',
    500: '#7e387d',
    950: '#000000',
  },
}
SCSS
$custom: #7e387d;
$custom-light: #a572a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e387d",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 300.857,
    "s": 38.462,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46071,
    "c": 0.13276,
    "h": 328
  },
  "luminance": 0.08745
}

Semantic roles & 50–950 ramp

primary
#7E387D
secondary
#69A96A
accent
#CE5B59
background
#FAF7FA
surface
#F4EDF3
border
#CEC8CD
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7E387D

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

Preview Lab → · Contrast checker → · Palette generator →

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