#7E30A5#7E30A5

#7E30A5 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.184 H 312.0°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7E30A5
RGBrgb(126, 48, 165)
HSLhsl(280, 55%, 42%)
HSVhsv(280, 71%, 65%)
CMYKcmyk(23.6%, 70.9%, 0%, 35.3%)
CIE-LABlab(36.49, 52.39, -48.44)
CIE-LCHlch(36.49, 71.35, 317.24°)
OKLaboklab(47.56% 0.1231 -0.1368)
OKLCHoklch(47.56% 0.184 312)
XYZxyz(16.4514, 9.2666, 36.5120)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30A5 #57A530
analogous
#4430A5 #7E30A5 #A53092
triadic
#7E30A5 #A57E30 #30A57E
tetradic
#7E30A5 #A54430 #57A530 #3092A5
square
#7E30A5 #A54430 #57A530 #3092A5
split-complementary
#7E30A5 #92A530 #30A544
monochromatic
#361446 #5A2276 #7E30A5 #9F48CA #B878D8

Accessibility & contrast

On white

7.36
#7E30A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E30A5
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30A5#FFFFFF#000000##FFFFFF
##7E30A51.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2257A2
Tritanopia (blue-blind)
#794967
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e30a5;
/* rgb */ color: rgb(126, 48, 165);
/* oklch */ color: oklch(47.6% 0.184 312.0);
Tailwind
colors: {
  custom: {
    50: '#a76fc0',
    500: '#7e30a5',
    950: '#000000',
  },
}
SCSS
$custom: #7e30a5;
$custom-light: #a76fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30a5",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 280,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47564,
    "c": 0.18406,
    "h": 312
  },
  "luminance": 0.09266
}

Semantic roles & 50–950 ramp

primary
#7E30A5
secondary
#8BC071
accent
#DE4A7B
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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