#7E28A8#7E28A8

#7E28A8 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.196 H 311.7°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7E28A8
RGBrgb(126, 40, 168)
HSLhsl(280, 62%, 41%)
HSVhsv(280, 76%, 66%)
CMYKcmyk(25%, 76.2%, 0%, 34.1%)
CIE-LABlab(35.56, 56.29, -51.75)
CIE-LCHlch(35.56, 76.47, 317.40°)
OKLaboklab(46.97% 0.1306 -0.1465)
OKLCHoklch(46.97% 0.196 311.7)
XYZxyz(16.4295, 8.7808, 37.8676)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28A8 #52A828
analogous
#3E28A8 #7E28A8 #A82892
triadic
#7E28A8 #A87E28 #28A87E
tetradic
#7E28A8 #A83E28 #52A828 #2892A8
square
#7E28A8 #A83E28 #52A828 #2892A8
split-complementary
#7E28A8 #92A828 #28A83E
monochromatic
#341045 #591C77 #7E28A8 #A03DD1 #B86EDC

Accessibility & contrast

On white

7.62
#7E28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7E28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E28A8
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28A8#FFFFFF#000000##FFFFFF
##7E28A81.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#1155A5
Tritanopia (blue-blind)
#794667
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e28a8;
/* rgb */ color: rgb(126, 40, 168);
/* oklch */ color: oklch(47.0% 0.196 311.7);
Tailwind
colors: {
  custom: {
    50: '#a86bc3',
    500: '#7e28a8',
    950: '#000000',
  },
}
SCSS
$custom: #7e28a8;
$custom-light: #a86bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28a8",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 280.313,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46968,
    "c": 0.19626,
    "h": 311.7
  },
  "luminance": 0.0878
}

Semantic roles & 50–950 ramp

primary
#7E28A8
secondary
#86C369
accent
#E54378
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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