#7E2ABF#7E2ABF

#7E2ABF is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.216 H 305.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7E2ABF
RGBrgb(126, 42, 191)
HSLhsl(274, 64%, 46%)
HSVhsv(274, 78%, 75%)
CMYKcmyk(34%, 78%, 0%, 25.1%)
CIE-LABlab(37.58, 60.56, -62.12)
CIE-LCHlch(37.58, 86.76, 314.27°)
OKLaboklab(48.94% 0.1239 -0.177)
OKLCHoklch(48.94% 0.216 305)
XYZxyz(18.8340, 9.8532, 50.1898)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2ABF #6BBF2A
analogous
#342ABF #7E2ABF #BF2AB5
triadic
#7E2ABF #BF7E2A #2ABF7E
tetradic
#7E2ABF #BF342A #6BBF2A #2AB5BF
square
#7E2ABF #BF342A #6BBF2A #2AB5BF
split-complementary
#7E2ABF #B5BF2A #2ABF34
monochromatic
#3C145B #5D1F8D #7E2ABF #9C4ED8 #B880E3

Accessibility & contrast

On white

7.07
#7E2ABF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7E2ABF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2ABF
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2ABF#FFFFFF#000000##FFFFFF
##7E2ABF1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#0058BC
Tritanopia (blue-blind)
#725174
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2abf;
/* rgb */ color: rgb(126, 42, 191);
/* oklch */ color: oklch(48.9% 0.216 305.0);
Tailwind
colors: {
  custom: {
    50: '#a96dd3',
    500: '#7e2abf',
    950: '#000000',
  },
}
SCSS
$custom: #7e2abf;
$custom-light: #a96dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2abf",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 191
  },
  "hsl": {
    "h": 273.826,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48938,
    "c": 0.21605,
    "h": 305
  },
  "luminance": 0.09853
}

Semantic roles & 50–950 ramp

primary
#7E2ABF
secondary
#9DCC79
accent
#E74189
background
#FAF6FD
surface
#F5ECFA
border
#CFC7D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E2ABF

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

Preview Lab → · Contrast checker → · Palette generator →

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