#7E2EB7#7E2EB7

#7E2EB7 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.204 H 306.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7E2EB7
RGBrgb(126, 46, 183)
HSLhsl(275, 60%, 45%)
HSVhsv(275, 75%, 72%)
CMYKcmyk(31.1%, 74.9%, 0%, 28.2%)
CIE-LABlab(37.50, 57.21, -57.54)
CIE-LCHlch(37.50, 81.14, 314.84°)
OKLaboklab(48.69% 0.1223 -0.1635)
OKLCHoklch(48.69% 0.204 306.8)
XYZxyz(18.1266, 9.8087, 45.7289)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EB7 #67B72E
analogous
#392EB7 #7E2EB7 #B72EAC
triadic
#7E2EB7 #B77E2E #2EB77E
tetradic
#7E2EB7 #B7392E #67B72E #2EACB7
square
#7E2EB7 #B7392E #67B72E #2EACB7
split-complementary
#7E2EB7 #ACB72E #2EB739
monochromatic
#3B1555 #5C2286 #7E2EB7 #9C4FD3 #B880DF

Accessibility & contrast

On white

7.09
#7E2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7E2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EB7
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EB7#FFFFFF#000000##FFFFFF
##7E2EB71.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#744F71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2eb7;
/* rgb */ color: rgb(126, 46, 183);
/* oklch */ color: oklch(48.7% 0.204 306.8);
Tailwind
colors: {
  custom: {
    50: '#a96fcd',
    500: '#7e2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #7e2eb7;
$custom-light: #a96fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2eb7",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 275.036,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48687,
    "c": 0.20418,
    "h": 306.8
  },
  "luminance": 0.09809
}

Semantic roles & 50–950 ramp

primary
#7E2EB7
secondary
#9AC879
accent
#E34587
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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