#7E30AC#7E30AC

#7E30AC is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.191 H 309.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7E30AC
RGBrgb(126, 48, 172)
HSLhsl(278, 56%, 43%)
HSVhsv(278, 72%, 67%)
CMYKcmyk(26.7%, 72.1%, 0%, 32.5%)
CIE-LABlab(36.98, 53.93, -51.84)
CIE-LCHlch(36.98, 74.80, 316.13°)
OKLaboklab(48.07% 0.1222 -0.1468)
OKLCHoklch(48.07% 0.191 309.8)
XYZxyz(17.1061, 9.5284, 39.9598)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30AC #5EAC30
analogous
#4030AC #7E30AC #AC309C
triadic
#7E30AC #AC7E30 #30AC7E
tetradic
#7E30AC #AC4030 #5EAC30 #309CAC
square
#7E30AC #AC4030 #5EAC30 #309CAC
split-complementary
#7E30AC #9CAC30 #30AC40
monochromatic
#38154C #5B237C #7E30AC #9D4CCD #B77CDA

Accessibility & contrast

On white

7.23
#7E30AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7E30AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E30AC
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30AC#FFFFFF#000000##FFFFFF
##7E30AC1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#1658A9
Tritanopia (blue-blind)
#774C6B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e30ac;
/* rgb */ color: rgb(126, 48, 172);
/* oklch */ color: oklch(48.1% 0.191 309.8);
Tailwind
colors: {
  custom: {
    50: '#a86fc5',
    500: '#7e30ac',
    950: '#000000',
  },
}
SCSS
$custom: #7e30ac;
$custom-light: #a86fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30ac",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 172
  },
  "hsl": {
    "h": 277.742,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48068,
    "c": 0.19101,
    "h": 309.8
  },
  "luminance": 0.09528
}

Semantic roles & 50–950 ramp

primary
#7E30AC
secondary
#92C375
accent
#E04880
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E30AC

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

Preview Lab → · Contrast checker → · Palette generator →

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