#7E2EB3#7E2EB3

#7E2EB3 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.200 H 307.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7E2EB3
RGBrgb(126, 46, 179)
HSLhsl(276, 59%, 44%)
HSVhsv(276, 74%, 70%)
CMYKcmyk(29.6%, 74.3%, 0%, 29.8%)
CIE-LABlab(37.20, 56.32, -55.66)
CIE-LCHlch(37.20, 79.18, 315.34°)
OKLaboklab(48.38% 0.123 -0.158)
OKLCHoklch(48.38% 0.2 307.9)
XYZxyz(17.7162, 9.6445, 43.5674)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EB3 #63B32E
analogous
#3C2EB3 #7E2EB3 #B32EA6
triadic
#7E2EB3 #B37E2E #2EB37E
tetradic
#7E2EB3 #B33C2E #63B32E #2EA6B3
square
#7E2EB3 #B33C2E #63B32E #2EA6B3
split-complementary
#7E2EB3 #A6B32E #2EB33C
monochromatic
#391552 #5C2182 #7E2EB3 #9D4DD1 #B77EDE

Accessibility & contrast

On white

7.17
#7E2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7E2EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EB3
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EB3#FFFFFF#000000##FFFFFF
##7E2EB31.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#754E6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2eb3;
/* rgb */ color: rgb(126, 46, 179);
/* oklch */ color: oklch(48.4% 0.200 307.9);
Tailwind
colors: {
  custom: {
    50: '#a86fcb',
    500: '#7e2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7e2eb3;
$custom-light: #a86fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2eb3",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 276.09,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4838,
    "c": 0.20025,
    "h": 307.9
  },
  "luminance": 0.09644
}

Semantic roles & 50–950 ramp

primary
#7E2EB3
secondary
#96C676
accent
#E24684
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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