#7E28B1#7E28B1

#7E28B1 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.205 H 309.0°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7E28B1
RGBrgb(126, 40, 177)
HSLhsl(278, 63%, 43%)
HSVhsv(278, 77%, 69%)
CMYKcmyk(28.8%, 77.4%, 0%, 30.6%)
CIE-LABlab(36.23, 58.22, -56.04)
CIE-LCHlch(36.23, 80.81, 316.09°)
OKLaboklab(47.65% 0.1289 -0.1591)
OKLCHoklch(47.65% 0.205 309)
XYZxyz(17.2972, 9.1278, 42.4371)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28B1 #5BB128
analogous
#3928B1 #7E28B1 #B128A0
triadic
#7E28B1 #B17E28 #28B17E
tetradic
#7E28B1 #B13928 #5BB128 #28A0B1
square
#7E28B1 #B13928 #5BB128 #28A0B1
split-complementary
#7E28B1 #A0B128 #28B139
monochromatic
#37114D #5A1D7F #7E28B1 #9E42D4 #B774E0

Accessibility & contrast

On white

7.43
#7E28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E28B1
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28B1#FFFFFF#000000##FFFFFF
##7E28B11.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#764A6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e28b1;
/* rgb */ color: rgb(126, 40, 177);
/* oklch */ color: oklch(47.7% 0.205 309.0);
Tailwind
colors: {
  custom: {
    50: '#a86cc9',
    500: '#7e28b1',
    950: '#000000',
  },
}
SCSS
$custom: #7e28b1;
$custom-light: #a86cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28b1",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 277.664,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47651,
    "c": 0.20473,
    "h": 309
  },
  "luminance": 0.09128
}

Semantic roles & 50–950 ramp

primary
#7E28B1
secondary
#8FC76E
accent
#E6427F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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