#7F41C2#7F41C2

#7F41C2 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.193 H 302.1°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7F41C2
RGBrgb(127, 65, 194)
HSLhsl(269, 51%, 51%)
HSVhsv(269, 66%, 76%)
CMYKcmyk(34.5%, 66.5%, 0%, 23.9%)
CIE-LABlab(41.51, 51.36, -57.48)
CIE-LCHlch(41.51, 77.08, 311.78°)
OKLaboklab(51.83% 0.1026 -0.1634)
OKLCHoklch(51.83% 0.193 302.1)
XYZxyz(20.3780, 12.1876, 52.3073)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41C2 #84C241
analogous
#4143C2 #7F41C2 #BF41C2
triadic
#7F41C2 #C27F41 #41C27F
tetradic
#7F41C2 #C24143 #84C241 #41C2BF
square
#7F41C2 #C24143 #84C241 #41C2BF
split-complementary
#7F41C2 #C2BF41 #43C241
monochromatic
#432167 #613096 #7F41C2 #9E6FD1 #BD9EE0

Accessibility & contrast

On white

6.11
#7F41C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7F41C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F41C2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41C2#FFFFFF#000000##FFFFFF
##7F41C21.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0261BF
Tritanopia (blue-blind)
#715E7C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f41c2;
/* rgb */ color: rgb(127, 65, 194);
/* oklch */ color: oklch(51.8% 0.193 302.1);
Tailwind
colors: {
  custom: {
    50: '#a97ad5',
    500: '#7f41c2',
    950: '#000000',
  },
}
SCSS
$custom: #7f41c2;
$custom-light: #a97ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41c2",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 268.837,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51827,
    "c": 0.19295,
    "h": 302.1
  },
  "luminance": 0.12188
}

Semantic roles & 50–950 ramp

primary
#7F41C2
secondary
#B1CC93
accent
#DB4D97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F41C2

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

Preview Lab → · Contrast checker → · Palette generator →

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