#7E2C97#7E2C97

#7E2C97 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.176 H 317.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7E2C97
RGBrgb(126, 44, 151)
HSLhsl(286, 55%, 38%)
HSVhsv(286, 71%, 59%)
CMYKcmyk(16.6%, 70.9%, 0%, 40.8%)
CIE-LABlab(34.95, 51.14, -42.46)
CIE-LCHlch(34.95, 66.47, 320.30°)
OKLaboklab(46.16% 0.1288 -0.1193)
OKLCHoklch(46.16% 0.176 317.2)
XYZxyz(15.0900, 8.4720, 30.1125)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2C97 #45972C
analogous
#482C97 #7E2C97 #972C7A
triadic
#7E2C97 #977E2C #2C977E
tetradic
#7E2C97 #97482C #45972C #2C7A97
square
#7E2C97 #97482C #45972C #2C7A97
split-complementary
#7E2C97 #7A972C #2C9748
monochromatic
#2F1038 #561E68 #7E2C97 #A53AC6 #BB6AD4

Accessibility & contrast

On white

7.79
#7E2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7E2C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2C97
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2C97#FFFFFF#000000##FFFFFF
##7E2C971.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#2E5595
Tritanopia (blue-blind)
#7D415E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2c97;
/* rgb */ color: rgb(126, 44, 151);
/* oklch */ color: oklch(46.2% 0.176 317.2);
Tailwind
colors: {
  custom: {
    50: '#a76db6',
    500: '#7e2c97',
    950: '#000000',
  },
}
SCSS
$custom: #7e2c97;
$custom-light: #a76db6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2c97",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 285.981,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46161,
    "c": 0.17551,
    "h": 317.2
  },
  "luminance": 0.08471
}

Semantic roles & 50–950 ramp

primary
#7E2C97
secondary
#79BA65
accent
#DE4A6C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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