#7E2EB9#7E2EB9

#7E2EB9 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.206 H 306.2°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#7E2EB9
RGBrgb(126, 46, 185)
HSLhsl(275, 60%, 45%)
HSVhsv(275, 75%, 73%)
CMYKcmyk(31.9%, 75.1%, 0%, 27.5%)
CIE-LABlab(37.65, 57.66, -58.47)
CIE-LCHlch(37.65, 82.12, 314.60°)
OKLaboklab(48.84% 0.1218 -0.1663)
OKLCHoklch(48.84% 0.206 306.2)
XYZxyz(18.3362, 9.8926, 46.8330)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EB9 #69B92E
analogous
#382EB9 #7E2EB9 #B92EAF
triadic
#7E2EB9 #B97E2E #2EB97E
tetradic
#7E2EB9 #B9382E #69B92E #2EAFB9
square
#7E2EB9 #B9382E #69B92E #2EAFB9
split-complementary
#7E2EB9 #AFB92E #2EB938
monochromatic
#3B1657 #5D2288 #7E2EB9 #9C51D4 #B882E0

Accessibility & contrast

On white

7.05
#7E2EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7E2EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EB9
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EB9#FFFFFF#000000##FFFFFF
##7E2EB91.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#745072
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e2eb9;
/* rgb */ color: rgb(126, 46, 185);
/* oklch */ color: oklch(48.8% 0.206 306.2);
Tailwind
colors: {
  custom: {
    50: '#a96fcf',
    500: '#7e2eb9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2eb9;
$custom-light: #a96fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2eb9",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 274.532,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48841,
    "c": 0.20614,
    "h": 306.2
  },
  "luminance": 0.09892
}

Semantic roles & 50–950 ramp

primary
#7E2EB9
secondary
#9BC97A
accent
#E34488
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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