#7E3DCA#7E3DCA

#7E3DCA is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.8% C 0.207 H 300.3°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7E3DCA
RGBrgb(126, 61, 202)
HSLhsl(268, 57%, 52%)
HSVhsv(268, 70%, 79%)
CMYKcmyk(37.6%, 69.8%, 0%, 20.8%)
CIE-LABlab(41.28, 55.06, -62.52)
CIE-LCHlch(41.28, 83.31, 311.37°)
OKLaboklab(51.81% 0.1043 -0.1783)
OKLCHoklch(51.81% 0.207 300.3)
XYZxyz(20.9310, 12.0372, 57.0863)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3DCA #89CA3D
analogous
#3D43CA #7E3DCA #C53DCA
triadic
#7E3DCA #CA7E3D #3DCA7E
tetradic
#7E3DCA #CA3D43 #89CA3D #3DCAC5
square
#7E3DCA #CA3D43 #89CA3D #3DCAC5
split-complementary
#7E3DCA #CAC53D #43CA3D
monochromatic
#431E6E #602B9F #7E3DCA #9E6DD7 #BE9DE4

Accessibility & contrast

On white

6.16
#7E3DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7E3DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3DCA
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3DCA#FFFFFF#000000##FFFFFF
##7E3DCA1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#6D5F7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e3dca;
/* rgb */ color: rgb(126, 61, 202);
/* oklch */ color: oklch(51.8% 0.207 300.3);
Tailwind
colors: {
  custom: {
    50: '#a978db',
    500: '#7e3dca',
    950: '#000000',
  },
}
SCSS
$custom: #7e3dca;
$custom-light: #a978db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3dca",
  "rgb": {
    "r": 126,
    "g": 61,
    "b": 202
  },
  "hsl": {
    "h": 267.66,
    "s": 57.085,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51814,
    "c": 0.20653,
    "h": 300.3
  },
  "luminance": 0.12037
}

Semantic roles & 50–950 ramp

primary
#7E3DCA
secondary
#B4D092
accent
#E0479A
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E3DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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