#7E28B6#7E28B6

#7E28B6 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.209 H 307.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7E28B6
RGBrgb(126, 40, 182)
HSLhsl(276, 64%, 44%)
HSVhsv(276, 78%, 71%)
CMYKcmyk(30.8%, 78%, 0%, 28.6%)
CIE-LABlab(36.61, 59.31, -58.38)
CIE-LCHlch(36.61, 83.22, 315.45°)
OKLaboklab(48.04% 0.1277 -0.166)
OKLCHoklch(48.04% 0.209 307.6)
XYZxyz(17.8047, 9.3309, 45.1100)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28B6 #60B628
analogous
#3728B6 #7E28B6 #B628A7
triadic
#7E28B6 #B67E28 #28B67E
tetradic
#7E28B6 #B63728 #60B628 #28A7B6
square
#7E28B6 #B63728 #60B628 #28A7B6
split-complementary
#7E28B6 #A7B628 #28B637
monochromatic
#391252 #5B1D84 #7E28B6 #9D45D6 #B777E1

Accessibility & contrast

On white

7.33
#7E28B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7E28B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E28B6
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28B6#FFFFFF#000000##FFFFFF
##7E28B61.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#754C6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e28b6;
/* rgb */ color: rgb(126, 40, 182);
/* oklch */ color: oklch(48.0% 0.209 307.6);
Tailwind
colors: {
  custom: {
    50: '#a96ccd',
    500: '#7e28b6',
    950: '#000000',
  },
}
SCSS
$custom: #7e28b6;
$custom-light: #a96ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28b6",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 276.338,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48041,
    "c": 0.20944,
    "h": 307.6
  },
  "luminance": 0.09331
}

Semantic roles & 50–950 ramp

primary
#7E28B6
secondary
#94C971
accent
#E74182
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7E28B6

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

Preview Lab → · Contrast checker → · Palette generator →

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