#7F3EC6#7F3EC6

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

Color values

HEX#7F3EC6
RGBrgb(127, 62, 198)
HSLhsl(269, 54%, 51%)
HSVhsv(269, 69%, 78%)
CMYKcmyk(35.9%, 68.7%, 0%, 22.4%)
CIE-LABlab(41.27, 53.80, -60.20)
CIE-LCHlch(41.27, 80.74, 311.79°)
OKLaboklab(51.74% 0.1053 -0.1714)
OKLCHoklch(51.74% 0.201 301.6)
XYZxyz(20.6656, 12.0344, 54.6493)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3EC6 #85C63E
analogous
#3E41C6 #7F3EC6 #C33EC6
triadic
#7F3EC6 #C67F3E #3EC67F
tetradic
#7F3EC6 #C63E41 #85C63E #3EC6C3
square
#7F3EC6 #C63E41 #85C63E #3EC6C3
split-complementary
#7F3EC6 #C6C33E #41C63E
monochromatic
#431F6A #612D99 #7F3EC6 #9E6DD4 #BE9CE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F3EC6#FFFFFF#000000##FFFFFF
##7F3EC61.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)
#0060CA
Deuteranopia (green-blind)
#0061C3
Tritanopia (blue-blind)
#705E7D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f3ec6;
/* rgb */ color: rgb(127, 62, 198);
/* oklch */ color: oklch(51.7% 0.201 301.6);
Tailwind
colors: {
  custom: {
    50: '#aa78d8',
    500: '#7f3ec6',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ec6;
$custom-light: #aa78d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ec6",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 198
  },
  "hsl": {
    "h": 268.676,
    "s": 54.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51744,
    "c": 0.20116,
    "h": 301.6
  },
  "luminance": 0.12034
}

Semantic roles & 50–950 ramp

primary
#7F3EC6
secondary
#B1CE92
accent
#DE4A97
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7F3EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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