#7E2EB6#7E2EB6

#7E2EB6 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.203 H 307.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7E2EB6
RGBrgb(126, 46, 182)
HSLhsl(275, 60%, 45%)
HSVhsv(275, 75%, 71%)
CMYKcmyk(30.8%, 74.7%, 0%, 28.6%)
CIE-LABlab(37.42, 56.99, -57.07)
CIE-LCHlch(37.42, 80.65, 314.96°)
OKLaboklab(48.61% 0.1225 -0.1622)
OKLCHoklch(48.61% 0.203 307.1)
XYZxyz(18.0229, 9.7672, 45.1827)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EB6 #66B62E
analogous
#3A2EB6 #7E2EB6 #B62EAA
triadic
#7E2EB6 #B67E2E #2EB67E
tetradic
#7E2EB6 #B63A2E #66B62E #2EAAB6
square
#7E2EB6 #B63A2E #66B62E #2EAAB6
split-complementary
#7E2EB6 #AAB62E #2EB63A
monochromatic
#3A1554 #5C2285 #7E2EB6 #9C4FD2 #B880DF

Accessibility & contrast

On white

7.11
#7E2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7E2EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EB6
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EB6#FFFFFF#000000##FFFFFF
##7E2EB61.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#744F70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2eb6;
/* rgb */ color: rgb(126, 46, 182);
/* oklch */ color: oklch(48.6% 0.203 307.1);
Tailwind
colors: {
  custom: {
    50: '#a86fcd',
    500: '#7e2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #7e2eb6;
$custom-light: #a86fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2eb6",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 275.294,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4861,
    "c": 0.2032,
    "h": 307.1
  },
  "luminance": 0.09767
}

Semantic roles & 50–950 ramp

primary
#7E2EB6
secondary
#99C878
accent
#E34586
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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