#7E30CA#7E30CA

#7E30CA is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.4% C 0.221 H 301.8°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#7E30CA
RGBrgb(126, 48, 202)
HSLhsl(270, 62%, 49%)
HSVhsv(270, 76%, 79%)
CMYKcmyk(37.6%, 76.2%, 0%, 20.8%)
CIE-LABlab(39.26, 60.76, -65.79)
CIE-LCHlch(39.26, 89.56, 312.72°)
OKLaboklab(50.39% 0.1163 -0.1878)
OKLCHoklch(50.39% 0.221 301.8)
XYZxyz(20.3192, 10.8137, 56.8824)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30CA #7CCA30
analogous
#3130CA #7E30CA #CA30C9
triadic
#7E30CA #CA7E30 #30CA7E
tetradic
#7E30CA #CA3130 #7CCA30 #30C9CA
square
#7E30CA #CA3130 #7CCA30 #30C9CA
split-complementary
#7E30CA #C9CA30 #30CA31
monochromatic
#401867 #5F2499 #7E30CA #9C5ED9 #BB90E5

Accessibility & contrast

On white

6.64
#7E30CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7E30CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E30CA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30CA#FFFFFF#000000##FFFFFF
##7E30CA1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#6D587C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e30ca;
/* rgb */ color: rgb(126, 48, 202);
/* oklch */ color: oklch(50.4% 0.221 301.8);
Tailwind
colors: {
  custom: {
    50: '#aa71db',
    500: '#7e30ca',
    950: '#000000',
  },
}
SCSS
$custom: #7e30ca;
$custom-light: #aa71db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30ca",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 202
  },
  "hsl": {
    "h": 270.39,
    "s": 61.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50393,
    "c": 0.22088,
    "h": 301.8
  },
  "luminance": 0.10814
}

Semantic roles & 50–950 ramp

primary
#7E30CA
secondary
#AACF87
accent
#E54393
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E30CA

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

Preview Lab → · Contrast checker → · Palette generator →

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