#7E28AA#7E28AA

#7E28AA is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.198 H 311.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7E28AA
RGBrgb(126, 40, 170)
HSLhsl(280, 62%, 41%)
HSVhsv(280, 76%, 67%)
CMYKcmyk(25.9%, 76.5%, 0%, 33.3%)
CIE-LABlab(35.71, 56.72, -52.71)
CIE-LCHlch(35.71, 77.43, 317.09°)
OKLaboklab(47.12% 0.1302 -0.1493)
OKLCHoklch(47.12% 0.198 311.1)
XYZxyz(16.6173, 8.8559, 38.8564)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28AA #54AA28
analogous
#3D28AA #7E28AA #AA2895
triadic
#7E28AA #AA7E28 #28AA7E
tetradic
#7E28AA #AA3D28 #54AA28 #2895AA
square
#7E28AA #AA3D28 #54AA28 #2895AA
split-complementary
#7E28AA #95AA28 #28AA3D
monochromatic
#351147 #591C78 #7E28AA #9F3ED2 #B86FDD

Accessibility & contrast

On white

7.58
#7E28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7E28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E28AA
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28AA#FFFFFF#000000##FFFFFF
##7E28AA1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0B55A7
Tritanopia (blue-blind)
#784768
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e28aa;
/* rgb */ color: rgb(126, 40, 170);
/* oklch */ color: oklch(47.1% 0.198 311.1);
Tailwind
colors: {
  custom: {
    50: '#a86bc4',
    500: '#7e28aa',
    950: '#000000',
  },
}
SCSS
$custom: #7e28aa;
$custom-light: #a86bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28aa",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 279.692,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47118,
    "c": 0.19814,
    "h": 311.1
  },
  "luminance": 0.08855
}

Semantic roles & 50–950 ramp

primary
#7E28AA
secondary
#88C46A
accent
#E5437A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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