#7F41BB#7F41BB

#7F41BB is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.185 H 303.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7F41BB
RGBrgb(127, 65, 187)
HSLhsl(270, 48%, 49%)
HSVhsv(270, 65%, 73%)
CMYKcmyk(32.1%, 65.2%, 0%, 26.7%)
CIE-LABlab(41.03, 49.65, -54.17)
CIE-LCHlch(41.03, 73.48, 312.51°)
OKLaboklab(51.32% 0.1033 -0.1537)
OKLCHoklch(51.32% 0.185 303.9)
XYZxyz(19.6103, 11.8805, 48.2641)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41BB #7DBB41
analogous
#4241BB #7F41BB #BB41BA
triadic
#7F41BB #BB7F41 #41BB7F
tetradic
#7F41BB #BB4241 #7DBB41 #41BABB
square
#7F41BB #BB4241 #7DBB41 #41BABB
split-complementary
#7F41BB #BABB41 #41BB42
monochromatic
#412160 #60318E #7F41BB #9D6DCC #BC9ADC

Accessibility & contrast

On white

6.22
#7F41BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7F41BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F41BB
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41BB#FFFFFF#000000##FFFFFF
##7F41BB1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#1A61B8
Tritanopia (blue-blind)
#745C78
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f41bb;
/* rgb */ color: rgb(127, 65, 187);
/* oklch */ color: oklch(51.3% 0.185 303.9);
Tailwind
colors: {
  custom: {
    50: '#a879d0',
    500: '#7f41bb',
    950: '#000000',
  },
}
SCSS
$custom: #7f41bb;
$custom-light: #a879d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41bb",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 187
  },
  "hsl": {
    "h": 270.492,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51322,
    "c": 0.18519,
    "h": 303.9
  },
  "luminance": 0.1188
}

Semantic roles & 50–950 ramp

primary
#7F41BB
secondary
#ABC890
accent
#D85093
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F41BB

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

Preview Lab → · Contrast checker → · Palette generator →

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