#7F3EC4#7F3EC4

#7F3EC4 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.6% C 0.199 H 302.0°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#7F3EC4
RGBrgb(127, 62, 196)
HSLhsl(269, 53%, 51%)
HSVhsv(269, 68%, 77%)
CMYKcmyk(35.2%, 68.4%, 0%, 23.1%)
CIE-LABlab(41.12, 53.32, -59.27)
CIE-LCHlch(41.12, 79.72, 311.97°)
OKLaboklab(51.59% 0.1055 -0.1687)
OKLCHoklch(51.59% 0.199 302)
XYZxyz(20.4365, 11.9427, 53.4424)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3EC4 #83C43E
analogous
#3E40C4 #7F3EC4 #C23EC4
triadic
#7F3EC4 #C47F3E #3EC47F
tetradic
#7F3EC4 #C43E40 #83C43E #3EC4C2
square
#7F3EC4 #C43E40 #83C43E #3EC4C2
split-complementary
#7F3EC4 #C4C23E #40C43E
monochromatic
#432068 #612E97 #7F3EC4 #9E6DD2 #BD9CE1

Accessibility & contrast

On white

6.20
#7F3EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7F3EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3EC4
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3EC4#FFFFFF#000000##FFFFFF
##7F3EC41.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#715D7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f3ec4;
/* rgb */ color: rgb(127, 62, 196);
/* oklch */ color: oklch(51.6% 0.199 302.0);
Tailwind
colors: {
  custom: {
    50: '#a978d7',
    500: '#7f3ec4',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ec4;
$custom-light: #a978d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ec4",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 196
  },
  "hsl": {
    "h": 269.104,
    "s": 53.175,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51594,
    "c": 0.19898,
    "h": 302
  },
  "luminance": 0.11943
}

Semantic roles & 50–950 ramp

primary
#7F3EC4
secondary
#B0CD91
accent
#DD4B96
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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