#7F3DA4#7F3DA4

#7F3DA4 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.2% C 0.166 H 311.3°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7F3DA4
RGBrgb(127, 61, 164)
HSLhsl(278, 46%, 44%)
HSVhsv(278, 63%, 64%)
CMYKcmyk(22.6%, 62.8%, 0%, 35.7%)
CIE-LABlab(38.78, 46.27, -44.17)
CIE-LCHlch(38.78, 63.96, 316.33°)
OKLaboklab(49.22% 0.1094 -0.1243)
OKLCHoklch(49.22% 0.166 311.3)
XYZxyz(17.1207, 10.5302, 36.2454)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3DA4 #62A43D
analogous
#4C3DA4 #7F3DA4 #A43D96
triadic
#7F3DA4 #A47F3D #3DA47F
tetradic
#7F3DA4 #A44C3D #62A43D #3D96A4
square
#7F3DA4 #A44C3D #62A43D #3D96A4
split-complementary
#7F3DA4 #96A43D #3DA44C
monochromatic
#3A1C4B #5C2C77 #7F3DA4 #9E5CC2 #B888D3

Accessibility & contrast

On white

6.76
#7F3DA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7F3DA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3DA4
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3DA4#FFFFFF#000000##FFFFFF
##7F3DA41.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1058A7
Deuteranopia (green-blind)
#335DA2
Tritanopia (blue-blind)
#7B516B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f3da4;
/* rgb */ color: rgb(127, 61, 164);
/* oklch */ color: oklch(49.2% 0.166 311.3);
Tailwind
colors: {
  custom: {
    50: '#a776bf',
    500: '#7f3da4',
    950: '#000000',
  },
}
SCSS
$custom: #7f3da4;
$custom-light: #a776bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3da4",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 164
  },
  "hsl": {
    "h": 278.447,
    "s": 45.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49215,
    "c": 0.16557,
    "h": 311.3
  },
  "luminance": 0.1053
}

Semantic roles & 50–950 ramp

primary
#7F3DA4
secondary
#96BD7F
accent
#D55281
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F3DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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