#7E28B8#7E28B8

#7E28B8 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.2% C 0.211 H 307.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7E28B8
RGBrgb(126, 40, 184)
HSLhsl(276, 64%, 44%)
HSVhsv(276, 78%, 72%)
CMYKcmyk(31.5%, 78.3%, 0%, 27.8%)
CIE-LABlab(36.77, 59.74, -59.31)
CIE-LCHlch(36.77, 84.19, 315.21°)
OKLaboklab(48.2% 0.1273 -0.1687)
OKLCHoklch(48.2% 0.211 307)
XYZxyz(18.0128, 9.4141, 46.2063)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28B8 #62B828
analogous
#3628B8 #7E28B8 #B828AA
triadic
#7E28B8 #B87E28 #28B87E
tetradic
#7E28B8 #B83628 #62B828 #28AAB8
square
#7E28B8 #B83628 #62B828 #28AAB8
split-complementary
#7E28B8 #AAB828 #28B836
monochromatic
#391253 #5C1D86 #7E28B8 #9D46D7 #B779E2

Accessibility & contrast

On white

7.28
#7E28B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7E28B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E28B8
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28B8#FFFFFF#000000##FFFFFF
##7E28B81.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#744D70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e28b8;
/* rgb */ color: rgb(126, 40, 184);
/* oklch */ color: oklch(48.2% 0.211 307.0);
Tailwind
colors: {
  custom: {
    50: '#a96cce',
    500: '#7e28b8',
    950: '#000000',
  },
}
SCSS
$custom: #7e28b8;
$custom-light: #a96cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28b8",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 184
  },
  "hsl": {
    "h": 275.833,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.482,
    "c": 0.21133,
    "h": 307
  },
  "luminance": 0.09414
}

Semantic roles & 50–950 ramp

primary
#7E28B8
secondary
#95CA72
accent
#E74184
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7E28B8

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

Preview Lab → · Contrast checker → · Palette generator →

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