#7E4397#7E4397

#7E4397 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.1% C 0.141 H 314.8°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#7E4397
RGBrgb(126, 67, 151)
HSLhsl(282, 39%, 43%)
HSVhsv(282, 56%, 59%)
CMYKcmyk(16.6%, 55.6%, 0%, 40.8%)
CIE-LABlab(39.04, 39.94, -35.93)
CIE-LCHlch(39.04, 53.72, 318.03°)
OKLaboklab(49.13% 0.0997 -0.1003)
OKLCHoklch(49.13% 0.141 314.8)
XYZxyz(16.1964, 10.6848, 30.4813)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4397 #5C9743
analogous
#544397 #7E4397 #974386
triadic
#7E4397 #977E43 #43977E
tetradic
#7E4397 #975443 #5C9743 #438697
square
#7E4397 #975443 #5C9743 #438697
split-complementary
#7E4397 #869743 #439754
monochromatic
#371D42 #5B306D #7E4397 #9E5FB8 #B78ACB

Accessibility & contrast

On white

6.69
#7E4397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7E4397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4397
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4397#FFFFFF#000000##FFFFFF
##7E43971.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E589A
Deuteranopia (green-blind)
#425E95
Tritanopia (blue-blind)
#7C5166
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e4397;
/* rgb */ color: rgb(126, 67, 151);
/* oklch */ color: oklch(49.1% 0.141 314.8);
Tailwind
colors: {
  custom: {
    50: '#a57ab6',
    500: '#7e4397',
    950: '#000000',
  },
}
SCSS
$custom: #7e4397;
$custom-light: #a57ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4397",
  "rgb": {
    "r": 126,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 282.143,
    "s": 38.532,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49133,
    "c": 0.14144,
    "h": 314.8
  },
  "luminance": 0.10684
}

Semantic roles & 50–950 ramp

primary
#7E4397
secondary
#90B680
accent
#CE597C
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#100911
muted
#7F7B80

Preview Lab

Preview with #7E4397

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

Preview Lab → · Contrast checker → · Palette generator →

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