#7F3CA6#7F3CA6

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

Color values

HEX#7F3CA6
RGBrgb(127, 60, 166)
HSLhsl(278, 47%, 44%)
HSVhsv(278, 64%, 65%)
CMYKcmyk(23.5%, 63.9%, 0%, 34.9%)
CIE-LABlab(38.72, 47.22, -45.45)
CIE-LCHlch(38.72, 65.54, 316.09°)
OKLaboklab(49.22% 0.1105 -0.1281)
OKLCHoklch(49.22% 0.169 310.8)
XYZxyz(17.2499, 10.4973, 37.1865)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CA6 #63A63C
analogous
#4A3CA6 #7F3CA6 #A63C98
triadic
#7F3CA6 #A67F3C #3CA67F
tetradic
#7F3CA6 #A64A3C #63A63C #3C98A6
square
#7F3CA6 #A64A3C #63A63C #3C98A6
split-complementary
#7F3CA6 #98A63C #3CA64A
monochromatic
#3A1C4C #5D2C79 #7F3CA6 #9D5BC4 #B888D4

Accessibility & contrast

On white

6.78
#7F3CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7F3CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CA6
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CA6#FFFFFF#000000##FFFFFF
##7F3CA61.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0658A9
Deuteranopia (green-blind)
#305CA4
Tritanopia (blue-blind)
#7A516B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f3ca6;
/* rgb */ color: rgb(127, 60, 166);
/* oklch */ color: oklch(49.2% 0.169 310.8);
Tailwind
colors: {
  custom: {
    50: '#a776c1',
    500: '#7f3ca6',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ca6;
$custom-light: #a776c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ca6",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 166
  },
  "hsl": {
    "h": 277.925,
    "s": 46.903,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49215,
    "c": 0.16919,
    "h": 310.8
  },
  "luminance": 0.10497
}

Semantic roles & 50–950 ramp

primary
#7F3CA6
secondary
#97BE7F
accent
#D75182
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F3CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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