#7E2D97#7E2D97

#7E2D97 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.174 H 317.1°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7E2D97
RGBrgb(126, 45, 151)
HSLhsl(286, 54%, 38%)
HSVhsv(286, 70%, 59%)
CMYKcmyk(16.6%, 70.2%, 0%, 40.8%)
CIE-LABlab(35.10, 50.72, -42.22)
CIE-LCHlch(35.10, 65.99, 320.22°)
OKLaboklab(46.27% 0.1277 -0.1186)
OKLCHoklch(46.27% 0.174 317.1)
XYZxyz(15.1277, 8.5474, 30.1251)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D97 #46972D
analogous
#492D97 #7E2D97 #972D7B
triadic
#7E2D97 #977E2D #2D977E
tetradic
#7E2D97 #97492D #46972D #2D7B97
square
#7E2D97 #97492D #46972D #2D7B97
split-complementary
#7E2D97 #7B972D #2D9749
monochromatic
#2F1139 #571F68 #7E2D97 #A53CC5 #BB6BD3

Accessibility & contrast

On white

7.75
#7E2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E2D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D97
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D97#FFFFFF#000000##FFFFFF
##7E2D971.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#2F5595
Tritanopia (blue-blind)
#7D425E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2d97;
/* rgb */ color: rgb(126, 45, 151);
/* oklch */ color: oklch(46.3% 0.174 317.1);
Tailwind
colors: {
  custom: {
    50: '#a76db6',
    500: '#7e2d97',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d97;
$custom-light: #a76db6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d97",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 285.849,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46269,
    "c": 0.17422,
    "h": 317.1
  },
  "luminance": 0.08547
}

Semantic roles & 50–950 ramp

primary
#7E2D97
secondary
#7ABA66
accent
#DD4A6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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