#7E28B0#7E28B0

#7E28B0 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.204 H 309.3°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#7E28B0
RGBrgb(126, 40, 176)
HSLhsl(278, 63%, 42%)
HSVhsv(278, 77%, 69%)
CMYKcmyk(28.4%, 77.3%, 0%, 31%)
CIE-LABlab(36.15, 58.00, -55.57)
CIE-LCHlch(36.15, 80.33, 316.23°)
OKLaboklab(47.57% 0.1291 -0.1577)
OKLCHoklch(47.57% 0.204 309.3)
XYZxyz(17.1979, 9.0881, 41.9141)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28B0 #5AB028
analogous
#3A28B0 #7E28B0 #B0289E
triadic
#7E28B0 #B07E28 #28B07E
tetradic
#7E28B0 #B03A28 #5AB028 #289EB0
square
#7E28B0 #B03A28 #5AB028 #289EB0
split-complementary
#7E28B0 #9EB028 #28B03A
monochromatic
#37114C #5A1D7E #7E28B0 #9E41D4 #B773DF

Accessibility & contrast

On white

7.45
#7E28B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7E28B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E28B0
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28B0#FFFFFF#000000##FFFFFF
##7E28B01.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#76496B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e28b0;
/* rgb */ color: rgb(126, 40, 176);
/* oklch */ color: oklch(47.6% 0.204 309.3);
Tailwind
colors: {
  custom: {
    50: '#a86cc8',
    500: '#7e28b0',
    950: '#000000',
  },
}
SCSS
$custom: #7e28b0;
$custom-light: #a86cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28b0",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 277.941,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47574,
    "c": 0.20379,
    "h": 309.3
  },
  "luminance": 0.09088
}

Semantic roles & 50–950 ramp

primary
#7E28B0
secondary
#8EC66D
accent
#E6427E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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