#7E28A0#7E28A0

#7E28A0 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.189 H 314.3°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7E28A0
RGBrgb(126, 40, 160)
HSLhsl(283, 60%, 39%)
HSVhsv(283, 75%, 63%)
CMYKcmyk(21.2%, 75%, 0%, 37.3%)
CIE-LABlab(34.99, 54.61, -47.86)
CIE-LCHlch(34.99, 72.62, 318.77°)
OKLaboklab(46.38% 0.1319 -0.1351)
OKLCHoklch(46.38% 0.189 314.3)
XYZxyz(15.7071, 8.4918, 34.0626)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28A0 #4AA028
analogous
#4228A0 #7E28A0 #A02886
triadic
#7E28A0 #A07E28 #28A07E
tetradic
#7E28A0 #A04228 #4AA028 #2886A0
square
#7E28A0 #A04228 #4AA028 #2886A0
split-complementary
#7E28A0 #86A028 #28A042
monochromatic
#31103E #571C6F #7E28A0 #A338CD #BA69D9

Accessibility & contrast

On white

7.78
#7E28A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E28A0
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28A0#FFFFFF#000000##FFFFFF
##7E28A01.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#20549D
Tritanopia (blue-blind)
#7B4262
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e28a0;
/* rgb */ color: rgb(126, 40, 160);
/* oklch */ color: oklch(46.4% 0.189 314.3);
Tailwind
colors: {
  custom: {
    50: '#a76bbd',
    500: '#7e28a0',
    950: '#000000',
  },
}
SCSS
$custom: #7e28a0;
$custom-light: #a76bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28a0",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 160
  },
  "hsl": {
    "h": 283,
    "s": 60,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46383,
    "c": 0.18878,
    "h": 314.3
  },
  "luminance": 0.08491
}

Semantic roles & 50–950 ramp

primary
#7E28A0
secondary
#7EC064
accent
#E34572
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E28A0

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

Preview Lab → · Contrast checker → · Palette generator →

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