#7E30A3#7E30A3

#7E30A3 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.4% C 0.182 H 312.6°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7E30A3
RGBrgb(126, 48, 163)
HSLhsl(281, 55%, 41%)
HSVhsv(281, 71%, 64%)
CMYKcmyk(22.7%, 70.6%, 0%, 36.1%)
CIE-LABlab(36.36, 51.95, -47.46)
CIE-LCHlch(36.36, 70.37, 317.59°)
OKLaboklab(47.42% 0.1233 -0.134)
OKLCHoklch(47.42% 0.182 312.6)
XYZxyz(16.2708, 9.1943, 35.5608)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30A3 #55A330
analogous
#4530A3 #7E30A3 #A3308F
triadic
#7E30A3 #A37E30 #30A37E
tetradic
#7E30A3 #A34530 #55A330 #308FA3
square
#7E30A3 #A34530 #55A330 #308FA3
split-complementary
#7E30A3 #8FA330 #30A345
monochromatic
#351444 #592274 #7E30A3 #9F47C9 #B877D7

Accessibility & contrast

On white

7.40
#7E30A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7E30A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E30A3
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30A3#FFFFFF#000000##FFFFFF
##7E30A31.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A6
Deuteranopia (green-blind)
#2557A0
Tritanopia (blue-blind)
#7A4866
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e30a3;
/* rgb */ color: rgb(126, 48, 163);
/* oklch */ color: oklch(47.4% 0.182 312.6);
Tailwind
colors: {
  custom: {
    50: '#a76fbf',
    500: '#7e30a3',
    950: '#000000',
  },
}
SCSS
$custom: #7e30a3;
$custom-light: #a76fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30a3",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 163
  },
  "hsl": {
    "h": 280.696,
    "s": 54.502,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47423,
    "c": 0.18208,
    "h": 312.6
  },
  "luminance": 0.09194
}

Semantic roles & 50–950 ramp

primary
#7E30A3
secondary
#89BF70
accent
#DE4A7A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E30A3

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

Preview Lab → · Contrast checker → · Palette generator →

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