#7E2EA9#7E2EA9

#7E2EA9 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.6% C 0.190 H 310.9°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#7E2EA9
RGBrgb(126, 46, 169)
HSLhsl(279, 57%, 42%)
HSVhsv(279, 73%, 66%)
CMYKcmyk(25.4%, 72.8%, 0%, 33.7%)
CIE-LABlab(36.47, 54.11, -50.88)
CIE-LCHlch(36.47, 74.28, 316.76°)
OKLaboklab(47.64% 0.1247 -0.144)
OKLCHoklch(47.64% 0.19 310.9)
XYZxyz(16.7412, 9.2546, 38.4328)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EA9 #59A92E
analogous
#402EA9 #7E2EA9 #A92E97
triadic
#7E2EA9 #A97E2E #2EA97E
tetradic
#7E2EA9 #A9402E #59A92E #2E97A9
square
#7E2EA9 #A9402E #59A92E #2E97A9
split-complementary
#7E2EA9 #97A92E #2EA940
monochromatic
#361449 #5A2179 #7E2EA9 #9E47CD #B877DA

Accessibility & contrast

On white

7.37
#7E2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7E2EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EA9
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EA9#FFFFFF#000000##FFFFFF
##7E2EA91.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#1957A6
Tritanopia (blue-blind)
#784A69
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2ea9;
/* rgb */ color: rgb(126, 46, 169);
/* oklch */ color: oklch(47.6% 0.190 310.9);
Tailwind
colors: {
  custom: {
    50: '#a86ec3',
    500: '#7e2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ea9;
$custom-light: #a86ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ea9",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 279.024,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47636,
    "c": 0.19044,
    "h": 310.9
  },
  "luminance": 0.09254
}

Semantic roles & 50–950 ramp

primary
#7E2EA9
secondary
#8DC271
accent
#E0477D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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