#7E2D94#7E2D94

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

Color values

HEX#7E2D94
RGBrgb(126, 45, 148)
HSLhsl(287, 53%, 38%)
HSVhsv(287, 70%, 58%)
CMYKcmyk(14.9%, 69.6%, 0%, 42%)
CIE-LABlab(34.91, 50.10, -40.70)
CIE-LCHlch(34.91, 64.55, 320.91°)
OKLaboklab(46.07% 0.1278 -0.1141)
OKLCHoklch(46.07% 0.171 318.2)
XYZxyz(14.8871, 8.4512, 28.8583)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D94 #43942D
analogous
#4A2D94 #7E2D94 #942D77
triadic
#7E2D94 #947E2D #2D947E
tetradic
#7E2D94 #944A2D #43942D #2D7794
square
#7E2D94 #944A2D #43942D #2D7794
split-complementary
#7E2D94 #77942D #2D944A
monochromatic
#2E1036 #561F65 #7E2D94 #A63BC3 #BB6AD2

Accessibility & contrast

On white

7.81
#7E2D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2D94
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D94#FFFFFF#000000##FFFFFF
##7E2D941.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#325592
Tritanopia (blue-blind)
#7E405D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2d94;
/* rgb */ color: rgb(126, 45, 148);
/* oklch */ color: oklch(46.1% 0.171 318.2);
Tailwind
colors: {
  custom: {
    50: '#a76db4',
    500: '#7e2d94',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d94;
$custom-light: #a76db4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d94",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 287.184,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46069,
    "c": 0.17136,
    "h": 318.2
  },
  "luminance": 0.08451
}

Semantic roles & 50–950 ramp

primary
#7E2D94
secondary
#76B864
accent
#DD4B6A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2D94

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

Preview Lab → · Contrast checker → · Palette generator →

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