#7E2EAB#7E2EAB

#7E2EAB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.192 H 310.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7E2EAB
RGBrgb(126, 46, 171)
HSLhsl(278, 58%, 43%)
HSVhsv(278, 73%, 67%)
CMYKcmyk(26.3%, 73.1%, 0%, 32.9%)
CIE-LABlab(36.61, 54.55, -51.84)
CIE-LCHlch(36.61, 75.26, 316.46°)
OKLaboklab(47.78% 0.1244 -0.1468)
OKLCHoklch(47.78% 0.192 310.3)
XYZxyz(16.9304, 9.3303, 39.4292)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EAB #5BAB2E
analogous
#3F2EAB #7E2EAB #AB2E9A
triadic
#7E2EAB #AB7E2E #2EAB7E
tetradic
#7E2EAB #AB3F2E #5BAB2E #2E9AAB
square
#7E2EAB #AB3F2E #5BAB2E #2E9AAB
split-complementary
#7E2EAB #9AAB2E #2EAB3F
monochromatic
#37144B #5A217B #7E2EAB #9E48CE #B779DB

Accessibility & contrast

On white

7.33
#7E2EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7E2EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EAB
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EAB#FFFFFF#000000##FFFFFF
##7E2EAB1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#1557A8
Tritanopia (blue-blind)
#784A6A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2eab;
/* rgb */ color: rgb(126, 46, 171);
/* oklch */ color: oklch(47.8% 0.192 310.3);
Tailwind
colors: {
  custom: {
    50: '#a86ec5',
    500: '#7e2eab',
    950: '#000000',
  },
}
SCSS
$custom: #7e2eab;
$custom-light: #a86ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2eab",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 278.4,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47783,
    "c": 0.1924,
    "h": 310.3
  },
  "luminance": 0.0933
}

Semantic roles & 50–950 ramp

primary
#7E2EAB
secondary
#8FC372
accent
#E1477E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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