#7E28B7#7E28B7

#7E28B7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.210 H 307.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7E28B7
RGBrgb(126, 40, 183)
HSLhsl(276, 64%, 44%)
HSVhsv(276, 78%, 72%)
CMYKcmyk(31.1%, 78.1%, 0%, 28.2%)
CIE-LABlab(36.69, 59.53, -58.85)
CIE-LCHlch(36.69, 83.70, 315.33°)
OKLaboklab(48.12% 0.1275 -0.1673)
OKLCHoklch(48.12% 0.21 307.3)
XYZxyz(17.9084, 9.3723, 45.6562)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28B7 #61B728
analogous
#3628B7 #7E28B7 #B728A8
triadic
#7E28B7 #B77E28 #28B77E
tetradic
#7E28B7 #B73628 #61B728 #28A8B7
square
#7E28B7 #B73628 #61B728 #28A8B7
split-complementary
#7E28B7 #A8B728 #28B736
monochromatic
#391253 #5B1D85 #7E28B7 #9D46D6 #B778E1

Accessibility & contrast

On white

7.31
#7E28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E28B7
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28B7#FFFFFF#000000##FFFFFF
##7E28B71.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#744D6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e28b7;
/* rgb */ color: rgb(126, 40, 183);
/* oklch */ color: oklch(48.1% 0.210 307.3);
Tailwind
colors: {
  custom: {
    50: '#a96cce',
    500: '#7e28b7',
    950: '#000000',
  },
}
SCSS
$custom: #7e28b7;
$custom-light: #a96cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28b7",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 276.084,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4812,
    "c": 0.21039,
    "h": 307.3
  },
  "luminance": 0.09372
}

Semantic roles & 50–950 ramp

primary
#7E28B7
secondary
#95C972
accent
#E74183
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7E28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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