#7F3CA4#7F3CA4

#7F3CA4 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.1% C 0.167 H 311.5°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#7F3CA4
RGBrgb(127, 60, 164)
HSLhsl(279, 46%, 44%)
HSVhsv(279, 63%, 64%)
CMYKcmyk(22.6%, 63.4%, 0%, 35.7%)
CIE-LABlab(38.59, 46.77, -44.46)
CIE-LCHlch(38.59, 64.53, 316.45°)
OKLaboklab(49.08% 0.1106 -0.1252)
OKLCHoklch(49.08% 0.167 311.5)
XYZxyz(17.0679, 10.4245, 36.2278)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CA4 #61A43C
analogous
#4B3CA4 #7F3CA4 #A43C95
triadic
#7F3CA4 #A47F3C #3CA47F
tetradic
#7F3CA4 #A44B3C #61A43C #3C95A4
square
#7F3CA4 #A44B3C #61A43C #3C95A4
split-complementary
#7F3CA4 #95A43C #3CA44B
monochromatic
#3A1B4A #5C2C77 #7F3CA4 #9E5AC3 #B887D3

Accessibility & contrast

On white

6.81
#7F3CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7F3CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CA4
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CA4#FFFFFF#000000##FFFFFF
##7F3CA41.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C58A7
Deuteranopia (green-blind)
#325CA2
Tritanopia (blue-blind)
#7B506A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f3ca4;
/* rgb */ color: rgb(127, 60, 164);
/* oklch */ color: oklch(49.1% 0.167 311.5);
Tailwind
colors: {
  custom: {
    50: '#a776bf',
    500: '#7f3ca4',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ca4;
$custom-light: #a776bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ca4",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 164
  },
  "hsl": {
    "h": 278.654,
    "s": 46.429,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49082,
    "c": 0.16704,
    "h": 311.5
  },
  "luminance": 0.10424
}

Semantic roles & 50–950 ramp

primary
#7F3CA4
secondary
#95BD7E
accent
#D65281
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F3CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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