#7E30A4#7E30A4

#7E30A4 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.183 H 312.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7E30A4
RGBrgb(126, 48, 164)
HSLhsl(280, 55%, 42%)
HSVhsv(280, 71%, 64%)
CMYKcmyk(23.2%, 70.7%, 0%, 35.7%)
CIE-LABlab(36.42, 52.17, -47.95)
CIE-LCHlch(36.42, 70.86, 317.41°)
OKLaboklab(47.49% 0.1232 -0.1354)
OKLCHoklch(47.49% 0.183 312.3)
XYZxyz(16.3608, 9.2303, 36.0345)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30A4 #56A430
analogous
#4430A4 #7E30A4 #A43090
triadic
#7E30A4 #A47E30 #30A47E
tetradic
#7E30A4 #A44430 #56A430 #3090A4
square
#7E30A4 #A44430 #56A430 #3090A4
split-complementary
#7E30A4 #90A430 #30A444
monochromatic
#351445 #5A2275 #7E30A4 #9F48C9 #B877D7

Accessibility & contrast

On white

7.38
#7E30A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E30A4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30A4#FFFFFF#000000##FFFFFF
##7E30A41.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#2457A1
Tritanopia (blue-blind)
#7A4966
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e30a4;
/* rgb */ color: rgb(126, 48, 164);
/* oklch */ color: oklch(47.5% 0.183 312.3);
Tailwind
colors: {
  custom: {
    50: '#a76fc0',
    500: '#7e30a4',
    950: '#000000',
  },
}
SCSS
$custom: #7e30a4;
$custom-light: #a76fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30a4",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 164
  },
  "hsl": {
    "h": 280.345,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47493,
    "c": 0.18307,
    "h": 312.3
  },
  "luminance": 0.0923
}

Semantic roles & 50–950 ramp

primary
#7E30A4
secondary
#8ABF70
accent
#DE4A7A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E30A4

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

Preview Lab → · Contrast checker → · Palette generator →

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