#7F3EB4#7F3EB4

#7F3EB4 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.4% C 0.182 H 306.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#7F3EB4
RGBrgb(127, 62, 180)
HSLhsl(273, 49%, 47%)
HSVhsv(273, 66%, 71%)
CMYKcmyk(29.4%, 65.6%, 0%, 29.4%)
CIE-LABlab(40.00, 49.47, -51.71)
CIE-LCHlch(40.00, 71.56, 313.74°)
OKLaboklab(50.43% 0.1073 -0.1464)
OKLCHoklch(50.43% 0.182 306.2)
XYZxyz(18.7115, 11.2527, 44.3574)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3EB4 #73B43E
analogous
#443EB4 #7F3EB4 #B43EAE
triadic
#7F3EB4 #B47F3E #3EB47F
tetradic
#7F3EB4 #B4443E #73B43E #3EAEB4
square
#7F3EB4 #B4443E #73B43E #3EAEB4
split-complementary
#7F3EB4 #AEB43E #3EB444
monochromatic
#3F1F59 #5F2E86 #7F3EB4 #9D65CA #BA93DA

Accessibility & contrast

On white

6.46
#7F3EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7F3EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3EB4
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3EB4#FFFFFF#000000##FFFFFF
##7F3EB41.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#215FB1
Tritanopia (blue-blind)
#765773
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f3eb4;
/* rgb */ color: rgb(127, 62, 180);
/* oklch */ color: oklch(50.4% 0.182 306.2);
Tailwind
colors: {
  custom: {
    50: '#a877cb',
    500: '#7f3eb4',
    950: '#000000',
  },
}
SCSS
$custom: #7f3eb4;
$custom-light: #a877cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3eb4",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 180
  },
  "hsl": {
    "h": 273.051,
    "s": 48.76,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50434,
    "c": 0.18156,
    "h": 306.2
  },
  "luminance": 0.11253
}

Semantic roles & 50–950 ramp

primary
#7F3EB4
secondary
#A4C589
accent
#D84F8D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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