#7E28BD#7E28BD

#7E28BD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.6% C 0.216 H 305.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7E28BD
RGBrgb(126, 40, 189)
HSLhsl(275, 65%, 45%)
HSVhsv(275, 79%, 74%)
CMYKcmyk(33.3%, 78.8%, 0%, 25.9%)
CIE-LABlab(37.17, 60.85, -61.62)
CIE-LCHlch(37.17, 86.60, 314.64°)
OKLaboklab(48.6% 0.126 -0.1755)
OKLCHoklch(48.6% 0.216 305.7)
XYZxyz(18.5462, 9.6275, 49.0155)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28BD #67BD28
analogous
#3328BD #7E28BD #BD28B2
triadic
#7E28BD #BD7E28 #28BD7E
tetradic
#7E28BD #BD3328 #67BD28 #28B2BD
square
#7E28BD #BD3328 #67BD28 #28B2BD
split-complementary
#7E28BD #B2BD28 #28BD33
monochromatic
#3B1358 #5C1D8A #7E28BD #9C4AD9 #B87CE3

Accessibility & contrast

On white

7.18
#7E28BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7E28BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E28BD
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28BD#FFFFFF#000000##FFFFFF
##7E28BD1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#724F73
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e28bd;
/* rgb */ color: rgb(126, 40, 189);
/* oklch */ color: oklch(48.6% 0.216 305.7);
Tailwind
colors: {
  custom: {
    50: '#a96cd2',
    500: '#7e28bd',
    950: '#000000',
  },
}
SCSS
$custom: #7e28bd;
$custom-light: #a96cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28bd",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 274.631,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.486,
    "c": 0.21605,
    "h": 305.7
  },
  "luminance": 0.09627
}

Semantic roles & 50–950 ramp

primary
#7E28BD
secondary
#9ACB75
accent
#E84087
background
#FAF6FD
surface
#F5ECFA
border
#CFC7D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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