#7F3EC2#7F3EC2

#7F3EC2 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.197 H 302.5°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7F3EC2
RGBrgb(127, 62, 194)
HSLhsl(270, 52%, 50%)
HSVhsv(270, 68%, 76%)
CMYKcmyk(34.5%, 68%, 0%, 23.9%)
CIE-LABlab(40.98, 52.83, -58.34)
CIE-LCHlch(40.98, 78.70, 312.16°)
OKLaboklab(51.44% 0.1058 -0.1659)
OKLCHoklch(51.44% 0.197 302.5)
XYZxyz(20.2103, 11.8523, 52.2515)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3EC2 #81C23E
analogous
#3E3FC2 #7F3EC2 #C13EC2
triadic
#7F3EC2 #C27F3E #3EC27F
tetradic
#7F3EC2 #C23E3F #81C23E #3EC2C1
square
#7F3EC2 #C23E3F #81C23E #3EC2C1
split-complementary
#7F3EC2 #C2C13E #3FC23E
monochromatic
#422066 #612F94 #7F3EC2 #9E6DD1 #BD9BDF

Accessibility & contrast

On white

6.23
#7F3EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7F3EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3EC2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3EC2#FFFFFF#000000##FFFFFF
##7F3EC21.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0060BF
Tritanopia (blue-blind)
#715C7B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f3ec2;
/* rgb */ color: rgb(127, 62, 194);
/* oklch */ color: oklch(51.4% 0.197 302.5);
Tailwind
colors: {
  custom: {
    50: '#a978d5',
    500: '#7f3ec2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ec2;
$custom-light: #a978d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ec2",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 269.545,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51445,
    "c": 0.19681,
    "h": 302.5
  },
  "luminance": 0.11852
}

Semantic roles & 50–950 ramp

primary
#7F3EC2
secondary
#AECB90
accent
#DB4C95
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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