#7E2D95#7E2D95

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

Color values

HEX#7E2D95
RGBrgb(126, 45, 149)
HSLhsl(287, 54%, 38%)
HSVhsv(287, 70%, 58%)
CMYKcmyk(15.4%, 69.8%, 0%, 41.6%)
CIE-LABlab(34.97, 50.31, -41.21)
CIE-LCHlch(34.97, 65.03, 320.68°)
OKLaboklab(46.14% 0.1278 -0.1156)
OKLCHoklch(46.14% 0.172 317.9)
XYZxyz(14.9666, 8.4830, 29.2770)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D95 #44952D
analogous
#4A2D95 #7E2D95 #952D78
triadic
#7E2D95 #957E2D #2D957E
tetradic
#7E2D95 #954A2D #44952D #2D7895
square
#7E2D95 #954A2D #44952D #2D7895
split-complementary
#7E2D95 #78952D #2D954A
monochromatic
#2F1137 #561F66 #7E2D95 #A63BC4 #BB6AD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2D95#FFFFFF#000000##FFFFFF
##7E2D951.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#315593
Tritanopia (blue-blind)
#7D415D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2d95;
/* rgb */ color: rgb(126, 45, 149);
/* oklch */ color: oklch(46.1% 0.172 317.9);
Tailwind
colors: {
  custom: {
    50: '#a76db5',
    500: '#7e2d95',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d95;
$custom-light: #a76db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d95",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 286.731,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46136,
    "c": 0.17231,
    "h": 317.9
  },
  "luminance": 0.08482
}

Semantic roles & 50–950 ramp

primary
#7E2D95
secondary
#77B965
accent
#DD4B6B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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