#7F3DA2#7F3DA2

#7F3DA2 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.1% C 0.163 H 312.0°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#7F3DA2
RGBrgb(127, 61, 162)
HSLhsl(279, 45%, 44%)
HSVhsv(279, 62%, 64%)
CMYKcmyk(21.6%, 62.3%, 0%, 36.5%)
CIE-LABlab(38.65, 45.82, -43.17)
CIE-LCHlch(38.65, 62.95, 316.71°)
OKLaboklab(49.09% 0.1094 -0.1214)
OKLCHoklch(49.09% 0.163 312)
XYZxyz(16.9416, 10.4586, 35.3017)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3DA2 #60A23D
analogous
#4C3DA2 #7F3DA2 #A23D92
triadic
#7F3DA2 #A27F3D #3DA27F
tetradic
#7F3DA2 #A24C3D #60A23D #3D92A2
square
#7F3DA2 #A24C3D #60A23D #3D92A2
split-complementary
#7F3DA2 #92A23D #3DA24C
monochromatic
#391C49 #5C2C76 #7F3DA2 #9E5BC1 #B887D2

Accessibility & contrast

On white

6.79
#7F3DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7F3DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3DA2
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3DA2#FFFFFF#000000##FFFFFF
##7F3DA21.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1558A5
Deuteranopia (green-blind)
#355CA0
Tritanopia (blue-blind)
#7B506A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f3da2;
/* rgb */ color: rgb(127, 61, 162);
/* oklch */ color: oklch(49.1% 0.163 312.0);
Tailwind
colors: {
  custom: {
    50: '#a776be',
    500: '#7f3da2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3da2;
$custom-light: #a776be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3da2",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 162
  },
  "hsl": {
    "h": 279.208,
    "s": 45.291,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49085,
    "c": 0.16341,
    "h": 312
  },
  "luminance": 0.10458
}

Semantic roles & 50–950 ramp

primary
#7F3DA2
secondary
#94BC7E
accent
#D55380
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F3DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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