#7E30C5#7E30C5

#7E30C5 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.216 H 303.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7E30C5
RGBrgb(126, 48, 197)
HSLhsl(271, 61%, 48%)
HSVhsv(271, 76%, 77%)
CMYKcmyk(36%, 75.6%, 0%, 22.7%)
CIE-LABlab(38.87, 59.60, -63.53)
CIE-LCHlch(38.87, 87.11, 313.17°)
OKLaboklab(49.99% 0.1174 -0.1812)
OKLCHoklch(49.99% 0.216 303)
XYZxyz(19.7368, 10.5807, 53.8150)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30C5 #77C530
analogous
#3330C5 #7E30C5 #C530C1
triadic
#7E30C5 #C57E30 #30C57E
tetradic
#7E30C5 #C53330 #77C530 #30C1C5
square
#7E30C5 #C53330 #77C530 #30C1C5
split-complementary
#7E30C5 #C1C530 #30C533
monochromatic
#3F1863 #5F2494 #7E30C5 #9C5BD7 #BA8CE3

Accessibility & contrast

On white

6.74
#7E30C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7E30C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E30C5
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30C5#FFFFFF#000000##FFFFFF
##7E30C51.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#6F5679
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e30c5;
/* rgb */ color: rgb(126, 48, 197);
/* oklch */ color: oklch(50.0% 0.216 303.0);
Tailwind
colors: {
  custom: {
    50: '#aa70d8',
    500: '#7e30c5',
    950: '#000000',
  },
}
SCSS
$custom: #7e30c5;
$custom-light: #aa70d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30c5",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 197
  },
  "hsl": {
    "h": 271.409,
    "s": 60.816,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49989,
    "c": 0.2159,
    "h": 303
  },
  "luminance": 0.10581
}

Semantic roles & 50–950 ramp

primary
#7E30C5
secondary
#A7CD84
accent
#E44490
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7E30C5

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

Preview Lab → · Contrast checker → · Palette generator →

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