#7E2AB7#7E2AB7

#7E2AB7 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.208 H 307.1°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#7E2AB7
RGBrgb(126, 42, 183)
HSLhsl(276, 63%, 44%)
HSVhsv(276, 77%, 72%)
CMYKcmyk(31.1%, 77%, 0%, 28.2%)
CIE-LABlab(36.95, 58.78, -58.43)
CIE-LCHlch(36.95, 82.88, 315.17°)
OKLaboklab(48.3% 0.1258 -0.1661)
OKLCHoklch(48.3% 0.208 307.1)
XYZxyz(17.9776, 9.5107, 45.6792)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AB7 #63B72A
analogous
#382AB7 #7E2AB7 #B72AAA
triadic
#7E2AB7 #B77E2A #2AB77E
tetradic
#7E2AB7 #B7382A #63B72A #2AAAB7
square
#7E2AB7 #B7382A #63B72A #2AAAB7
split-complementary
#7E2AB7 #AAB72A #2AB738
monochromatic
#391353 #5C1F85 #7E2AB7 #9D49D5 #B77BE1

Accessibility & contrast

On white

7.24
#7E2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7E2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AB7
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AB7#FFFFFF#000000##FFFFFF
##7E2AB71.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0058B4
Tritanopia (blue-blind)
#744D70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2ab7;
/* rgb */ color: rgb(126, 42, 183);
/* oklch */ color: oklch(48.3% 0.208 307.1);
Tailwind
colors: {
  custom: {
    50: '#a96dce',
    500: '#7e2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ab7;
$custom-light: #a96dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ab7",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 275.745,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48301,
    "c": 0.20839,
    "h": 307.1
  },
  "luminance": 0.0951
}

Semantic roles & 50–950 ramp

primary
#7E2AB7
secondary
#96C974
accent
#E64284
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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