#7E28A4#7E28A4

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

Color values

HEX#7E28A4
RGBrgb(126, 40, 164)
HSLhsl(282, 61%, 40%)
HSVhsv(282, 76%, 64%)
CMYKcmyk(23.2%, 75.6%, 0%, 35.7%)
CIE-LABlab(35.27, 55.45, -49.82)
CIE-LCHlch(35.27, 74.54, 318.06°)
OKLaboklab(46.67% 0.1313 -0.1408)
OKLCHoklch(46.67% 0.193 313)
XYZxyz(16.0626, 8.6340, 35.9352)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28A4 #4EA428
analogous
#4028A4 #7E28A4 #A4288C
triadic
#7E28A4 #A47E28 #28A47E
tetradic
#7E28A4 #A44028 #4EA428 #288CA4
square
#7E28A4 #A44028 #4EA428 #288CA4
split-complementary
#7E28A4 #8CA428 #28A440
monochromatic
#321042 #581C73 #7E28A4 #A13ACF #B96BDB

Accessibility & contrast

On white

7.70
#7E28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E28A4
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28A4#FFFFFF#000000##FFFFFF
##7E28A41.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#1A55A1
Tritanopia (blue-blind)
#7A4464
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e28a4;
/* rgb */ color: rgb(126, 40, 164);
/* oklch */ color: oklch(46.7% 0.193 313.0);
Tailwind
colors: {
  custom: {
    50: '#a86bc0',
    500: '#7e28a4',
    950: '#000000',
  },
}
SCSS
$custom: #7e28a4;
$custom-light: #a86bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28a4",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 281.613,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.46673,
    "c": 0.19251,
    "h": 313
  },
  "luminance": 0.08634
}

Semantic roles & 50–950 ramp

primary
#7E28A4
secondary
#82C166
accent
#E44475
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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