#7F3EB3#7F3EB3

#7F3EB3 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.4% C 0.180 H 306.5°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#7F3EB3
RGBrgb(127, 62, 179)
HSLhsl(273, 49%, 47%)
HSVhsv(273, 65%, 70%)
CMYKcmyk(29.1%, 65.4%, 0%, 29.8%)
CIE-LABlab(39.94, 49.24, -51.22)
CIE-LCHlch(39.94, 71.05, 313.87°)
OKLaboklab(50.36% 0.1074 -0.145)
OKLCHoklch(50.36% 0.18 306.5)
XYZxyz(18.6100, 11.2121, 43.8229)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3EB3 #72B33E
analogous
#443EB3 #7F3EB3 #B33EAD
triadic
#7F3EB3 #B37F3E #3EB37F
tetradic
#7F3EB3 #B3443E #72B33E #3EADB3
square
#7F3EB3 #B3443E #72B33E #3EADB3
split-complementary
#7F3EB3 #ADB33E #3EB344
monochromatic
#3E1F58 #5F2E86 #7F3EB3 #9D65CA #BA92D9

Accessibility & contrast

On white

6.48
#7F3EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7F3EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3EB3
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3EB3#FFFFFF#000000##FFFFFF
##7F3EB31.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB7
Deuteranopia (green-blind)
#235FB0
Tritanopia (blue-blind)
#765773
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f3eb3;
/* rgb */ color: rgb(127, 62, 179);
/* oklch */ color: oklch(50.4% 0.180 306.5);
Tailwind
colors: {
  custom: {
    50: '#a877ca',
    500: '#7f3eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7f3eb3;
$custom-light: #a877ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3eb3",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 179
  },
  "hsl": {
    "h": 273.333,
    "s": 48.548,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50364,
    "c": 0.18047,
    "h": 306.5
  },
  "luminance": 0.11212
}

Semantic roles & 50–950 ramp

primary
#7F3EB3
secondary
#A3C588
accent
#D8508C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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