#7E2FAA#7E2FAA

#7E2FAA is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.8% C 0.190 H 310.5°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7E2FAA
RGBrgb(126, 47, 170)
HSLhsl(279, 57%, 43%)
HSVhsv(279, 72%, 67%)
CMYKcmyk(25.9%, 72.4%, 0%, 33.3%)
CIE-LABlab(36.69, 53.91, -51.12)
CIE-LCHlch(36.69, 74.30, 316.52°)
OKLaboklab(47.82% 0.1235 -0.1447)
OKLCHoklch(47.82% 0.19 310.5)
XYZxyz(16.8750, 9.3713, 38.9423)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FAA #5BAA2F
analogous
#412FAA #7E2FAA #AA2F98
triadic
#7E2FAA #AA7E2F #2FAA7E
tetradic
#7E2FAA #AA412F #5BAA2F #2F98AA
square
#7E2FAA #AA412F #5BAA2F #2F98AA
split-complementary
#7E2FAA #98AA2F #2FAA41
monochromatic
#37144A #5A227A #7E2FAA #9E49CD #B779DA

Accessibility & contrast

On white

7.31
#7E2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7E2FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FAA
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FAA#FFFFFF#000000##FFFFFF
##7E2FAA1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#1958A7
Tritanopia (blue-blind)
#784B6A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2faa;
/* rgb */ color: rgb(126, 47, 170);
/* oklch */ color: oklch(47.8% 0.190 310.5);
Tailwind
colors: {
  custom: {
    50: '#a86fc4',
    500: '#7e2faa',
    950: '#000000',
  },
}
SCSS
$custom: #7e2faa;
$custom-light: #a86fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2faa",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 278.537,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47815,
    "c": 0.19024,
    "h": 310.5
  },
  "luminance": 0.09371
}

Semantic roles & 50–950 ramp

primary
#7E2FAA
secondary
#8FC272
accent
#E0487E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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