#7E378B#7E378B

#7E378B is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.7% C 0.148 H 321.2°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7E378B
RGBrgb(126, 55, 139)
HSLhsl(291, 43%, 38%)
HSVhsv(291, 60%, 55%)
CMYKcmyk(9.4%, 60.4%, 0%, 45.5%)
CIE-LABlab(36.05, 43.62, -33.37)
CIE-LCHlch(36.05, 54.92, 322.58°)
OKLaboklab(46.72% 0.1154 -0.0928)
OKLCHoklch(46.72% 0.148 321.2)
XYZxyz(14.6300, 9.0328, 25.3940)
Luminance0.0903 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E378B #448B37
analogous
#54378B #7E378B #8B376E
triadic
#7E378B #8B7E37 #378B7E
tetradic
#7E378B #8B5437 #448B37 #376E8B
square
#7E378B #8B5437 #448B37 #376E8B
split-complementary
#7E378B #6E8B37 #378B54
monochromatic
#2F1433 #56265F #7E378B #A648B7 #BB74C8

Accessibility & contrast

On white

7.48
#7E378B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E378B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E378B
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E378B#FFFFFF#000000##FFFFFF
##7E378B1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26508E
Deuteranopia (green-blind)
#405789
Tritanopia (blue-blind)
#7F445C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e378b;
/* rgb */ color: rgb(126, 55, 139);
/* oklch */ color: oklch(46.7% 0.148 321.2);
Tailwind
colors: {
  custom: {
    50: '#a672ad',
    500: '#7e378b',
    950: '#000000',
  },
}
SCSS
$custom: #7e378b;
$custom-light: #a672ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e378b",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 139
  },
  "hsl": {
    "h": 290.714,
    "s": 43.299,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46722,
    "c": 0.14811,
    "h": 321.2
  },
  "luminance": 0.09032
}

Semantic roles & 50–950 ramp

primary
#7E378B
secondary
#77B16D
accent
#D35568
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E378B

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

Preview Lab → · Contrast checker → · Palette generator →

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