#7F3EC3#7F3EC3

#7F3EC3 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.5% C 0.198 H 302.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7F3EC3
RGBrgb(127, 62, 195)
HSLhsl(269, 53%, 50%)
HSVhsv(269, 68%, 76%)
CMYKcmyk(34.9%, 68.2%, 0%, 23.5%)
CIE-LABlab(41.05, 53.07, -58.81)
CIE-LCHlch(41.05, 79.21, 312.07°)
OKLaboklab(51.52% 0.1057 -0.1673)
OKLCHoklch(51.52% 0.198 302.3)
XYZxyz(20.3230, 11.8974, 52.8449)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3EC3 #82C33E
analogous
#3E40C3 #7F3EC3 #C13EC3
triadic
#7F3EC3 #C37F3E #3EC37F
tetradic
#7F3EC3 #C33E40 #82C33E #3EC3C1
square
#7F3EC3 #C33E40 #82C33E #3EC3C1
split-complementary
#7F3EC3 #C3C13E #40C33E
monochromatic
#432067 #612E95 #7F3EC3 #9E6DD2 #BD9BE0

Accessibility & contrast

On white

6.21
#7F3EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7F3EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3EC3
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3EC3#FFFFFF#000000##FFFFFF
##7F3EC31.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f3ec3;
/* rgb */ color: rgb(127, 62, 195);
/* oklch */ color: oklch(51.5% 0.198 302.3);
Tailwind
colors: {
  custom: {
    50: '#a978d6',
    500: '#7f3ec3',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ec3;
$custom-light: #a978d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ec3",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 195
  },
  "hsl": {
    "h": 269.323,
    "s": 52.569,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5152,
    "c": 0.1979,
    "h": 302.3
  },
  "luminance": 0.11897
}

Semantic roles & 50–950 ramp

primary
#7F3EC3
secondary
#AFCC91
accent
#DC4C96
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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