#7E2EB2#7E2EB2

#7E2EB2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.3% C 0.199 H 308.2°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7E2EB2
RGBrgb(126, 46, 178)
HSLhsl(276, 59%, 44%)
HSVhsv(276, 74%, 70%)
CMYKcmyk(29.2%, 74.2%, 0%, 30.2%)
CIE-LABlab(37.12, 56.10, -55.19)
CIE-LCHlch(37.12, 78.69, 315.47°)
OKLaboklab(48.31% 0.1232 -0.1566)
OKLCHoklch(48.31% 0.199 308.2)
XYZxyz(17.6154, 9.6042, 43.0367)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EB2 #62B22E
analogous
#3C2EB2 #7E2EB2 #B22EA4
triadic
#7E2EB2 #B27E2E #2EB27E
tetradic
#7E2EB2 #B23C2E #62B22E #2EA4B2
square
#7E2EB2 #B23C2E #62B22E #2EA4B2
split-complementary
#7E2EB2 #A4B22E #2EB23C
monochromatic
#391551 #5C2181 #7E2EB2 #9D4CD1 #B77DDD

Accessibility & contrast

On white

7.19
#7E2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7E2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EB2
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EB2#FFFFFF#000000##FFFFFF
##7E2EB21.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#764D6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2eb2;
/* rgb */ color: rgb(126, 46, 178);
/* oklch */ color: oklch(48.3% 0.199 308.2);
Tailwind
colors: {
  custom: {
    50: '#a86fca',
    500: '#7e2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #7e2eb2;
$custom-light: #a86fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2eb2",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 276.364,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48305,
    "c": 0.19927,
    "h": 308.2
  },
  "luminance": 0.09604
}

Semantic roles & 50–950 ramp

primary
#7E2EB2
secondary
#95C676
accent
#E24683
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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