#7F41AC#7F41AC

#7F41AC is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.3% C 0.168 H 308.2°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7F41AC
RGBrgb(127, 65, 172)
HSLhsl(275, 45%, 46%)
HSVhsv(275, 62%, 67%)
CMYKcmyk(26.2%, 62.2%, 0%, 32.5%)
CIE-LABlab(40.03, 46.07, -46.92)
CIE-LCHlch(40.03, 65.76, 314.48°)
OKLaboklab(50.29% 0.1042 -0.1324)
OKLCHoklch(50.29% 0.168 308.2)
XYZxyz(18.0876, 11.2714, 40.2445)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41AC #6EAC41
analogous
#4941AC #7F41AC #AC41A4
triadic
#7F41AC #AC7F41 #41AC7F
tetradic
#7F41AC #AC4941 #6EAC41 #41A4AC
square
#7F41AC #AC4941 #6EAC41 #41A4AC
split-complementary
#7F41AC #A4AC41 #41AC49
monochromatic
#3D1F53 #5E3080 #7F41AC #9D65C5 #B992D6

Accessibility & contrast

On white

6.45
#7F41AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7F41AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F41AC
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41AC#FFFFFF#000000##FFFFFF
##7F41AC1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5CAF
Deuteranopia (green-blind)
#305FAA
Tritanopia (blue-blind)
#785670
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f41ac;
/* rgb */ color: rgb(127, 65, 172);
/* oklch */ color: oklch(50.3% 0.168 308.2);
Tailwind
colors: {
  custom: {
    50: '#a779c5',
    500: '#7f41ac',
    950: '#000000',
  },
}
SCSS
$custom: #7f41ac;
$custom-light: #a779c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41ac",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 172
  },
  "hsl": {
    "h": 274.766,
    "s": 45.148,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50289,
    "c": 0.16847,
    "h": 308.2
  },
  "luminance": 0.11271
}

Semantic roles & 50–950 ramp

primary
#7F41AC
secondary
#A0C188
accent
#D5538A
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F41AC

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

Preview Lab → · Contrast checker → · Palette generator →

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