#7E28A5#7E28A5

#7E28A5 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.193 H 312.7°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7E28A5
RGBrgb(126, 40, 165)
HSLhsl(281, 61%, 40%)
HSVhsv(281, 76%, 65%)
CMYKcmyk(23.6%, 75.8%, 0%, 35.3%)
CIE-LABlab(35.34, 55.66, -50.30)
CIE-LCHlch(35.34, 75.02, 317.89°)
OKLaboklab(46.75% 0.1311 -0.1422)
OKLCHoklch(46.75% 0.193 312.7)
XYZxyz(16.1533, 8.6703, 36.4126)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28A5 #4FA528
analogous
#3F28A5 #7E28A5 #A5288D
triadic
#7E28A5 #A57E28 #28A57E
tetradic
#7E28A5 #A53F28 #4FA528 #288DA5
square
#7E28A5 #A53F28 #4FA528 #288DA5
split-complementary
#7E28A5 #8DA528 #28A53F
monochromatic
#331042 #581C74 #7E28A5 #A13BCF #B96CDB

Accessibility & contrast

On white

7.68
#7E28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7E28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E28A5
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28A5#FFFFFF#000000##FFFFFF
##7E28A51.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#1855A2
Tritanopia (blue-blind)
#7A4565
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e28a5;
/* rgb */ color: rgb(126, 40, 165);
/* oklch */ color: oklch(46.7% 0.193 312.7);
Tailwind
colors: {
  custom: {
    50: '#a86bc0',
    500: '#7e28a5',
    950: '#000000',
  },
}
SCSS
$custom: #7e28a5;
$custom-light: #a86bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28a5",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 281.28,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46747,
    "c": 0.19345,
    "h": 312.7
  },
  "luminance": 0.0867
}

Semantic roles & 50–950 ramp

primary
#7E28A5
secondary
#83C267
accent
#E44476
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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