#7F3CA2#7F3CA2

#7F3CA2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.165 H 312.1°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7F3CA2
RGBrgb(127, 60, 162)
HSLhsl(279, 46%, 44%)
HSVhsv(279, 63%, 64%)
CMYKcmyk(21.6%, 63%, 0%, 36.5%)
CIE-LABlab(38.47, 46.32, -43.46)
CIE-LCHlch(38.47, 63.52, 316.82°)
OKLaboklab(48.95% 0.1107 -0.1223)
OKLCHoklch(48.95% 0.165 312.1)
XYZxyz(16.8887, 10.3528, 35.2840)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CA2 #5FA23C
analogous
#4C3CA2 #7F3CA2 #A23C92
triadic
#7F3CA2 #A27F3C #3CA27F
tetradic
#7F3CA2 #A24C3C #5FA23C #3C92A2
square
#7F3CA2 #A24C3C #5FA23C #3C92A2
split-complementary
#7F3CA2 #92A23C #3CA24C
monochromatic
#391B49 #5C2B75 #7F3CA2 #9E59C2 #B886D2

Accessibility & contrast

On white

6.84
#7F3CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7F3CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CA2
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CA2#FFFFFF#000000##FFFFFF
##7F3CA21.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1257A5
Deuteranopia (green-blind)
#345CA0
Tritanopia (blue-blind)
#7B4F69
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f3ca2;
/* rgb */ color: rgb(127, 60, 162);
/* oklch */ color: oklch(49.0% 0.165 312.1);
Tailwind
colors: {
  custom: {
    50: '#a776be',
    500: '#7f3ca2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ca2;
$custom-light: #a776be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ca2",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 162
  },
  "hsl": {
    "h": 279.412,
    "s": 45.946,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48951,
    "c": 0.1649,
    "h": 312.1
  },
  "luminance": 0.10352
}

Semantic roles & 50–950 ramp

primary
#7F3CA2
secondary
#93BC7D
accent
#D6527F
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F3CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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