#7F41B7#7F41B7

#7F41B7 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.181 H 305.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7F41B7
RGBrgb(127, 65, 183)
HSLhsl(272, 48%, 49%)
HSVhsv(272, 64%, 72%)
CMYKcmyk(30.6%, 64.5%, 0%, 28.2%)
CIE-LABlab(40.75, 48.69, -52.26)
CIE-LCHlch(40.75, 71.43, 312.97°)
OKLaboklab(51.04% 0.1036 -0.1481)
OKLCHoklch(51.04% 0.181 305)
XYZxyz(19.1880, 11.7116, 46.0403)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41B7 #79B741
analogous
#4441B7 #7F41B7 #B741B4
triadic
#7F41B7 #B77F41 #41B77F
tetradic
#7F41B7 #B74441 #79B741 #41B4B7
square
#7F41B7 #B74441 #79B741 #41B4B7
split-complementary
#7F41B7 #B4B741 #41B744
monochromatic
#40215D #60318A #7F41B7 #9D6BCA #BB98DA

Accessibility & contrast

On white

6.28
#7F41B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7F41B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F41B7
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41B7#FFFFFF#000000##FFFFFF
##7F41B71.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#2160B4
Tritanopia (blue-blind)
#755A76
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f41b7;
/* rgb */ color: rgb(127, 65, 183);
/* oklch */ color: oklch(51.0% 0.181 305.0);
Tailwind
colors: {
  custom: {
    50: '#a879cd',
    500: '#7f41b7',
    950: '#000000',
  },
}
SCSS
$custom: #7f41b7;
$custom-light: #a879cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41b7",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 271.525,
    "s": 47.581,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5104,
    "c": 0.18073,
    "h": 305
  },
  "luminance": 0.11712
}

Semantic roles & 50–950 ramp

primary
#7F41B7
secondary
#A8C68E
accent
#D75190
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F41B7

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

Preview Lab → · Contrast checker → · Palette generator →

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