#7F4FA5#7F4FA5

#7F4FA5 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.0% C 0.138 H 308.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7F4FA5
RGBrgb(127, 79, 165)
HSLhsl(273, 35%, 48%)
HSVhsv(273, 52%, 65%)
CMYKcmyk(23%, 52.1%, 0%, 35.3%)
CIE-LABlab(42.49, 36.80, -38.84)
CIE-LCHlch(42.49, 53.51, 313.45°)
OKLaboklab(51.96% 0.0853 -0.1088)
OKLCHoklch(51.96% 0.138 308.1)
XYZxyz(18.3386, 12.8208, 37.0986)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FA5 #75A54F
analogous
#544FA5 #7F4FA5 #A54FA0
triadic
#7F4FA5 #A57F4F #4FA57F
tetradic
#7F4FA5 #A5544F #75A54F #4FA0A5
square
#7F4FA5 #A5544F #75A54F #4FA0A5
split-complementary
#7F4FA5 #A0A54F #4FA554
monochromatic
#3F2752 #5F3B7C #7F4FA5 #9D75BD #BA9ED1

Accessibility & contrast

On white

5.89
#7F4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7F4FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FA5
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FA5#FFFFFF#000000##FFFFFF
##7F4FA51.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3662A8
Deuteranopia (green-blind)
#4565A3
Tritanopia (blue-blind)
#7A5E72
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f4fa5;
/* rgb */ color: rgb(127, 79, 165);
/* oklch */ color: oklch(52.0% 0.138 308.1);
Tailwind
colors: {
  custom: {
    50: '#a682c0',
    500: '#7f4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #7f4fa5;
$custom-light: #a682c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4fa5",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 273.488,
    "s": 35.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51957,
    "c": 0.13827,
    "h": 308.1
  },
  "luminance": 0.12821
}

Semantic roles & 50–950 ramp

primary
#7F4FA5
secondary
#A5BD92
accent
#CB5D8D
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #7F4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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