#7E30C9#7E30C9

#7E30C9 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.3% C 0.220 H 302.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#7E30C9
RGBrgb(126, 48, 201)
HSLhsl(271, 61%, 49%)
HSVhsv(271, 76%, 79%)
CMYKcmyk(37.3%, 76.1%, 0%, 21.2%)
CIE-LABlab(39.18, 60.53, -65.34)
CIE-LCHlch(39.18, 89.07, 312.81°)
OKLaboklab(50.31% 0.1165 -0.1865)
OKLCHoklch(50.31% 0.22 302)
XYZxyz(20.2012, 10.7665, 56.2609)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30C9 #7BC930
analogous
#3130C9 #7E30C9 #C930C8
triadic
#7E30C9 #C97E30 #30C97E
tetradic
#7E30C9 #C93130 #7BC930 #30C8C9
square
#7E30C9 #C93130 #7BC930 #30C8C9
split-complementary
#7E30C9 #C8C930 #30C931
monochromatic
#401866 #5F2498 #7E30C9 #9C5ED8 #BB8FE4

Accessibility & contrast

On white

6.66
#7E30C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7E30C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E30C9
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30C9#FFFFFF#000000##FFFFFF
##7E30C91.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#6E587B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e30c9;
/* rgb */ color: rgb(126, 48, 201);
/* oklch */ color: oklch(50.3% 0.220 302.0);
Tailwind
colors: {
  custom: {
    50: '#aa71da',
    500: '#7e30c9',
    950: '#000000',
  },
}
SCSS
$custom: #7e30c9;
$custom-light: #aa71da;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30c9",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 201
  },
  "hsl": {
    "h": 270.588,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50312,
    "c": 0.21988,
    "h": 302
  },
  "luminance": 0.10767
}

Semantic roles & 50–950 ramp

primary
#7E30C9
secondary
#AACF86
accent
#E54392
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E30C9

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

Preview Lab → · Contrast checker → · Palette generator →

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