#7E30A6#7E30A6

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

Color values

HEX#7E30A6
RGBrgb(126, 48, 166)
HSLhsl(280, 55%, 42%)
HSVhsv(280, 71%, 65%)
CMYKcmyk(24.1%, 71.1%, 0%, 34.9%)
CIE-LABlab(36.56, 52.61, -48.93)
CIE-LCHlch(36.56, 71.85, 317.07°)
OKLaboklab(47.64% 0.123 -0.1383)
OKLCHoklch(47.64% 0.185 311.7)
XYZxyz(16.5428, 9.3031, 36.9932)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30A6 #58A630
analogous
#4330A6 #7E30A6 #A63093
triadic
#7E30A6 #A67E30 #30A67E
tetradic
#7E30A6 #A64330 #58A630 #3093A6
square
#7E30A6 #A64330 #58A630 #3093A6
split-complementary
#7E30A6 #93A630 #30A643
monochromatic
#361547 #5A2277 #7E30A6 #9E49CA #B878D8

Accessibility & contrast

On white

7.34
#7E30A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7E30A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E30A6
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30A6#FFFFFF#000000##FFFFFF
##7E30A61.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#2157A3
Tritanopia (blue-blind)
#794968
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e30a6;
/* rgb */ color: rgb(126, 48, 166);
/* oklch */ color: oklch(47.6% 0.185 311.7);
Tailwind
colors: {
  custom: {
    50: '#a76fc1',
    500: '#7e30a6',
    950: '#000000',
  },
}
SCSS
$custom: #7e30a6;
$custom-light: #a76fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30a6",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 166
  },
  "hsl": {
    "h": 279.661,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47635,
    "c": 0.18505,
    "h": 311.7
  },
  "luminance": 0.09303
}

Semantic roles & 50–950 ramp

primary
#7E30A6
secondary
#8CC071
accent
#DE497C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E30A6

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

Preview Lab → · Contrast checker → · Palette generator →

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