#7F41B8#7F41B8

#7F41B8 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.182 H 304.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7F41B8
RGBrgb(127, 65, 184)
HSLhsl(271, 48%, 49%)
HSVhsv(271, 65%, 72%)
CMYKcmyk(31%, 64.7%, 0%, 27.8%)
CIE-LABlab(40.82, 48.93, -52.74)
CIE-LCHlch(40.82, 71.94, 312.85°)
OKLaboklab(51.11% 0.1035 -0.1495)
OKLCHoklch(51.11% 0.182 304.7)
XYZxyz(19.2925, 11.7534, 46.5904)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41B8 #7AB841
analogous
#4441B8 #7F41B8 #B841B6
triadic
#7F41B8 #B87F41 #41B87F
tetradic
#7F41B8 #B84441 #7AB841 #41B6B8
square
#7F41B8 #B84441 #7AB841 #41B6B8
split-complementary
#7F41B8 #B6B841 #41B844
monochromatic
#41215E #60318B #7F41B8 #9D6BCB #BB99DB

Accessibility & contrast

On white

6.27
#7F41B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7F41B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F41B8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41B8#FFFFFF#000000##FFFFFF
##7F41B81.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#2060B5
Tritanopia (blue-blind)
#755A77
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f41b8;
/* rgb */ color: rgb(127, 65, 184);
/* oklch */ color: oklch(51.1% 0.182 304.7);
Tailwind
colors: {
  custom: {
    50: '#a879ce',
    500: '#7f41b8',
    950: '#000000',
  },
}
SCSS
$custom: #7f41b8;
$custom-light: #a879ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41b8",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 184
  },
  "hsl": {
    "h": 271.261,
    "s": 47.791,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5111,
    "c": 0.18184,
    "h": 304.7
  },
  "luminance": 0.11753
}

Semantic roles & 50–950 ramp

primary
#7F41B8
secondary
#A9C78E
accent
#D75091
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F41B8

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

Preview Lab → · Contrast checker → · Palette generator →

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