#7E28AE#7E28AE

#7E28AE is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.202 H 309.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7E28AE
RGBrgb(126, 40, 174)
HSLhsl(279, 63%, 42%)
HSVhsv(279, 77%, 68%)
CMYKcmyk(27.6%, 77%, 0%, 31.8%)
CIE-LABlab(36.00, 57.57, -54.62)
CIE-LCHlch(36.00, 79.36, 316.51°)
OKLaboklab(47.42% 0.1295 -0.1549)
OKLCHoklch(47.42% 0.202 309.9)
XYZxyz(17.0014, 9.0096, 40.8796)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28AE #58AE28
analogous
#3B28AE #7E28AE #AE289B
triadic
#7E28AE #AE7E28 #28AE7E
tetradic
#7E28AE #AE3B28 #58AE28 #289BAE
square
#7E28AE #AE3B28 #58AE28 #289BAE
split-complementary
#7E28AE #9BAE28 #28AE3B
monochromatic
#36114A #5A1D7C #7E28AE #9E40D3 #B872DF

Accessibility & contrast

On white

7.50
#7E28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7E28AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E28AE
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28AE#FFFFFF#000000##FFFFFF
##7E28AE1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0056AB
Tritanopia (blue-blind)
#77496A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e28ae;
/* rgb */ color: rgb(126, 40, 174);
/* oklch */ color: oklch(47.4% 0.202 309.9);
Tailwind
colors: {
  custom: {
    50: '#a86cc7',
    500: '#7e28ae',
    950: '#000000',
  },
}
SCSS
$custom: #7e28ae;
$custom-light: #a86cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28ae",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 278.507,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47421,
    "c": 0.20191,
    "h": 309.9
  },
  "luminance": 0.09009
}

Semantic roles & 50–950 ramp

primary
#7E28AE
secondary
#8CC66C
accent
#E6427D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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