#7E2AB6#7E2AB6

#7E2AB6 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.207 H 307.4°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7E2AB6
RGBrgb(126, 42, 182)
HSLhsl(276, 63%, 44%)
HSVhsv(276, 77%, 71%)
CMYKcmyk(30.8%, 76.9%, 0%, 28.6%)
CIE-LABlab(36.87, 58.56, -57.96)
CIE-LCHlch(36.87, 82.40, 315.29°)
OKLaboklab(48.22% 0.126 -0.1648)
OKLCHoklch(48.22% 0.207 307.4)
XYZxyz(17.8738, 9.4692, 45.1330)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AB6 #62B62A
analogous
#382AB6 #7E2AB6 #B62AA8
triadic
#7E2AB6 #B67E2A #2AB67E
tetradic
#7E2AB6 #B6382A #62B62A #2AA8B6
square
#7E2AB6 #B6382A #62B62A #2AA8B6
split-complementary
#7E2AB6 #A8B62A #2AB638
monochromatic
#391353 #5C1F84 #7E2AB6 #9D48D5 #B77AE0

Accessibility & contrast

On white

7.26
#7E2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7E2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AB6
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AB6#FFFFFF#000000##FFFFFF
##7E2AB61.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#754D6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2ab6;
/* rgb */ color: rgb(126, 42, 182);
/* oklch */ color: oklch(48.2% 0.207 307.4);
Tailwind
colors: {
  custom: {
    50: '#a96dcd',
    500: '#7e2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ab6;
$custom-light: #a96dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ab6",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 276,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48223,
    "c": 0.20744,
    "h": 307.4
  },
  "luminance": 0.09469
}

Semantic roles & 50–950 ramp

primary
#7E2AB6
secondary
#95C873
accent
#E64284
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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