#7F41BA#7F41BA

#7F41BA is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.184 H 304.2°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7F41BA
RGBrgb(127, 65, 186)
HSLhsl(271, 48%, 49%)
HSVhsv(271, 65%, 73%)
CMYKcmyk(31.7%, 65.1%, 0%, 27.1%)
CIE-LABlab(40.96, 49.41, -53.70)
CIE-LCHlch(40.96, 72.97, 312.62°)
OKLaboklab(51.25% 0.1034 -0.1523)
OKLCHoklch(51.25% 0.184 304.2)
XYZxyz(19.5036, 11.8379, 47.7023)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41BA #7CBA41
analogous
#4341BA #7F41BA #BA41B9
triadic
#7F41BA #BA7F41 #41BA7F
tetradic
#7F41BA #BA4341 #7CBA41 #41B9BA
square
#7F41BA #BA4341 #7CBA41 #41B9BA
split-complementary
#7F41BA #B9BA41 #41BA43
monochromatic
#41215F #60318D #7F41BA #9D6CCC #BC9ADC

Accessibility & contrast

On white

6.24
#7F41BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7F41BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F41BA
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41BA#FFFFFF#000000##FFFFFF
##7F41BA1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#1C61B7
Tritanopia (blue-blind)
#745B78
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f41ba;
/* rgb */ color: rgb(127, 65, 186);
/* oklch */ color: oklch(51.3% 0.184 304.2);
Tailwind
colors: {
  custom: {
    50: '#a879cf',
    500: '#7f41ba',
    950: '#000000',
  },
}
SCSS
$custom: #7f41ba;
$custom-light: #a879cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41ba",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 270.744,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51251,
    "c": 0.18407,
    "h": 304.2
  },
  "luminance": 0.11838
}

Semantic roles & 50–950 ramp

primary
#7F41BA
secondary
#ABC88F
accent
#D85092
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F41BA

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

Preview Lab → · Contrast checker → · Palette generator →

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