#7E3F97#7E3F97

#7E3F97 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 48.5% C 0.148 H 315.3°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7E3F97
RGBrgb(126, 63, 151)
HSLhsl(283, 41%, 42%)
HSVhsv(283, 58%, 59%)
CMYKcmyk(16.6%, 58.3%, 0%, 40.8%)
CIE-LABlab(38.24, 42.07, -37.20)
CIE-LCHlch(38.24, 56.16, 318.52°)
OKLaboklab(48.55% 0.1053 -0.104)
OKLCHoklch(48.55% 0.148 315.3)
XYZxyz(15.9667, 10.2255, 30.4048)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3F97 #58973F
analogous
#523F97 #7E3F97 #973F84
triadic
#7E3F97 #977E3F #3F977E
tetradic
#7E3F97 #97523F #58973F #3F8497
square
#7E3F97 #97523F #58973F #3F8497
split-complementary
#7E3F97 #84973F #3F9752
monochromatic
#361B41 #5A2D6C #7E3F97 #9E59BA #B885CC

Accessibility & contrast

On white

6.90
#7E3F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7E3F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3F97
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3F97#FFFFFF#000000##FFFFFF
##7E3F971.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27569A
Deuteranopia (green-blind)
#3E5C95
Tritanopia (blue-blind)
#7C4E65
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e3f97;
/* rgb */ color: rgb(126, 63, 151);
/* oklch */ color: oklch(48.5% 0.148 315.3);
Tailwind
colors: {
  custom: {
    50: '#a677b6',
    500: '#7e3f97',
    950: '#000000',
  },
}
SCSS
$custom: #7e3f97;
$custom-light: #a677b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3f97",
  "rgb": {
    "r": 126,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 282.955,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48547,
    "c": 0.14796,
    "h": 315.3
  },
  "luminance": 0.10225
}

Semantic roles & 50–950 ramp

primary
#7E3F97
secondary
#8CB67C
accent
#D1577A
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100911
muted
#7F7B80

Preview Lab

Preview with #7E3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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