#7E2AAB#7E2AAB

#7E2AAB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.4% C 0.197 H 310.6°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7E2AAB
RGBrgb(126, 42, 171)
HSLhsl(279, 61%, 42%)
HSVhsv(279, 75%, 67%)
CMYKcmyk(26.3%, 75.4%, 0%, 32.9%)
CIE-LABlab(36.05, 56.16, -52.76)
CIE-LCHlch(36.05, 77.06, 316.79°)
OKLaboklab(47.38% 0.1282 -0.1495)
OKLCHoklch(47.38% 0.197 310.6)
XYZxyz(16.7814, 9.0322, 39.3796)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AAB #57AB2A
analogous
#3E2AAB #7E2AAB #AB2A98
triadic
#7E2AAB #AB7E2A #2AAB7E
tetradic
#7E2AAB #AB3E2A #57AB2A #2A98AB
square
#7E2AAB #AB3E2A #57AB2A #2A98AB
split-complementary
#7E2AAB #98AB2A #2AAB3E
monochromatic
#361249 #5A1E7A #7E2AAB #9F42D1 #B873DD

Accessibility & contrast

On white

7.48
#7E2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AAB
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AAB#FFFFFF#000000##FFFFFF
##7E2AAB1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0C56A8
Tritanopia (blue-blind)
#784869
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2aab;
/* rgb */ color: rgb(126, 42, 171);
/* oklch */ color: oklch(47.4% 0.197 310.6);
Tailwind
colors: {
  custom: {
    50: '#a86cc5',
    500: '#7e2aab',
    950: '#000000',
  },
}
SCSS
$custom: #7e2aab;
$custom-light: #a86cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2aab",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 279.07,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47382,
    "c": 0.19694,
    "h": 310.6
  },
  "luminance": 0.09032
}

Semantic roles & 50–950 ramp

primary
#7E2AAB
secondary
#8BC46D
accent
#E4447C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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