#7E28BA#7E28BA

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

Color values

HEX#7E28BA
RGBrgb(126, 40, 186)
HSLhsl(275, 65%, 44%)
HSVhsv(275, 78%, 73%)
CMYKcmyk(32.3%, 78.5%, 0%, 27.1%)
CIE-LABlab(36.93, 60.18, -60.24)
CIE-LCHlch(36.93, 85.15, 314.97°)
OKLaboklab(48.36% 0.1268 -0.1714)
OKLCHoklch(48.36% 0.213 306.5)
XYZxyz(18.2240, 9.4986, 47.3182)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28BA #64BA28
analogous
#3528BA #7E28BA #BA28AD
triadic
#7E28BA #BA7E28 #28BA7E
tetradic
#7E28BA #BA3528 #64BA28 #28ADBA
square
#7E28BA #BA3528 #64BA28 #28ADBA
split-complementary
#7E28BA #ADBA28 #28BA35
monochromatic
#3A1255 #5C1D88 #7E28BA #9C48D8 #B77AE2

Accessibility & contrast

On white

7.24
#7E28BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7E28BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E28BA
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28BA#FFFFFF#000000##FFFFFF
##7E28BA1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#734E71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e28ba;
/* rgb */ color: rgb(126, 40, 186);
/* oklch */ color: oklch(48.4% 0.213 306.5);
Tailwind
colors: {
  custom: {
    50: '#a96cd0',
    500: '#7e28ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e28ba;
$custom-light: #a96cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28ba",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 275.342,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48359,
    "c": 0.21322,
    "h": 306.5
  },
  "luminance": 0.09498
}

Semantic roles & 50–950 ramp

primary
#7E28BA
secondary
#97CA73
accent
#E84085
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7E28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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