#7E2D96#7E2D96

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

Color values

HEX#7E2D96
RGBrgb(126, 45, 150)
HSLhsl(286, 54%, 38%)
HSVhsv(286, 70%, 59%)
CMYKcmyk(16%, 70%, 0%, 41.2%)
CIE-LABlab(35.03, 50.51, -41.72)
CIE-LCHlch(35.03, 65.51, 320.45°)
OKLaboklab(46.2% 0.1277 -0.1171)
OKLCHoklch(46.2% 0.173 317.5)
XYZxyz(15.0468, 8.5150, 29.6992)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D96 #45962D
analogous
#4A2D96 #7E2D96 #962D79
triadic
#7E2D96 #967E2D #2D967E
tetradic
#7E2D96 #964A2D #45962D #2D7996
square
#7E2D96 #964A2D #45962D #2D7996
split-complementary
#7E2D96 #79962D #2D964A
monochromatic
#2F1138 #561F67 #7E2D96 #A53CC4 #BB6BD3

Accessibility & contrast

On white

7.77
#7E2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7E2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D96
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D96#FFFFFF#000000##FFFFFF
##7E2D961.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D99
Deuteranopia (green-blind)
#305594
Tritanopia (blue-blind)
#7D415E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2d96;
/* rgb */ color: rgb(126, 45, 150);
/* oklch */ color: oklch(46.2% 0.173 317.5);
Tailwind
colors: {
  custom: {
    50: '#a76db5',
    500: '#7e2d96',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d96;
$custom-light: #a76db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d96",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 286.286,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46202,
    "c": 0.17326,
    "h": 317.5
  },
  "luminance": 0.08514
}

Semantic roles & 50–950 ramp

primary
#7E2D96
secondary
#79B965
accent
#DD4B6C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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