#7E28BB#7E28BB

#7E28BB is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.4% C 0.214 H 306.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7E28BB
RGBrgb(126, 40, 187)
HSLhsl(275, 65%, 45%)
HSVhsv(275, 79%, 73%)
CMYKcmyk(32.6%, 78.6%, 0%, 26.7%)
CIE-LABlab(37.01, 60.40, -60.70)
CIE-LCHlch(37.01, 85.63, 314.86°)
OKLaboklab(48.44% 0.1265 -0.1728)
OKLCHoklch(48.44% 0.214 306.2)
XYZxyz(18.3306, 9.5412, 47.8800)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28BB #65BB28
analogous
#3428BB #7E28BB #BB28AF
triadic
#7E28BB #BB7E28 #28BB7E
tetradic
#7E28BB #BB3428 #65BB28 #28AFBB
square
#7E28BB #BB3428 #65BB28 #28AFBB
split-complementary
#7E28BB #AFBB28 #28BB34
monochromatic
#3A1256 #5C1D89 #7E28BB #9C48D8 #B87BE3

Accessibility & contrast

On white

7.22
#7E28BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7E28BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E28BB
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28BB#FFFFFF#000000##FFFFFF
##7E28BB1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#734E71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e28bb;
/* rgb */ color: rgb(126, 40, 187);
/* oklch */ color: oklch(48.4% 0.214 306.2);
Tailwind
colors: {
  custom: {
    50: '#a96cd0',
    500: '#7e28bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e28bb;
$custom-light: #a96cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28bb",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 275.102,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48439,
    "c": 0.21416,
    "h": 306.2
  },
  "luminance": 0.09541
}

Semantic roles & 50–950 ramp

primary
#7E28BB
secondary
#98CB74
accent
#E84086
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7E28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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