#7F41C0#7F41C0

#7F41C0 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.191 H 302.6°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7F41C0
RGBrgb(127, 65, 192)
HSLhsl(269, 50%, 50%)
HSVhsv(269, 66%, 75%)
CMYKcmyk(33.9%, 66.1%, 0%, 24.7%)
CIE-LABlab(41.37, 50.87, -56.54)
CIE-LCHlch(41.37, 76.05, 311.98°)
OKLaboklab(51.68% 0.1028 -0.1607)
OKLCHoklch(51.68% 0.191 302.6)
XYZxyz(20.1549, 12.0984, 51.1323)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41C0 #82C041
analogous
#4142C0 #7F41C0 #BE41C0
triadic
#7F41C0 #C07F41 #41C07F
tetradic
#7F41C0 #C04142 #82C041 #41C0BE
square
#7F41C0 #C04142 #82C041 #41C0BE
split-complementary
#7F41C0 #C0BE41 #42C041
monochromatic
#432265 #613193 #7F41C0 #9E6FCF #BD9DDE

Accessibility & contrast

On white

6.14
#7F41C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7F41C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F41C0
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41C0#FFFFFF#000000##FFFFFF
##7F41C01.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C4
Deuteranopia (green-blind)
#0B61BD
Tritanopia (blue-blind)
#725D7B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f41c0;
/* rgb */ color: rgb(127, 65, 192);
/* oklch */ color: oklch(51.7% 0.191 302.6);
Tailwind
colors: {
  custom: {
    50: '#a97ad4',
    500: '#7f41c0',
    950: '#000000',
  },
}
SCSS
$custom: #7f41c0;
$custom-light: #a97ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41c0",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 192
  },
  "hsl": {
    "h": 269.291,
    "s": 50.198,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51681,
    "c": 0.19074,
    "h": 302.6
  },
  "luminance": 0.12098
}

Semantic roles & 50–950 ramp

primary
#7F41C0
secondary
#AFCB92
accent
#DA4E96
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F41C0

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

Preview Lab → · Contrast checker → · Palette generator →

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