#7F41C3#7F41C3

#7F41C3 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.9% C 0.194 H 301.9°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7F41C3
RGBrgb(127, 65, 195)
HSLhsl(269, 52%, 51%)
HSVhsv(269, 67%, 76%)
CMYKcmyk(34.9%, 66.7%, 0%, 23.5%)
CIE-LABlab(41.58, 51.60, -57.95)
CIE-LCHlch(41.58, 77.59, 311.69°)
OKLaboklab(51.9% 0.1025 -0.1648)
OKLCHoklch(51.9% 0.194 301.9)
XYZxyz(20.4907, 12.2327, 52.9008)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41C3 #85C341
analogous
#4144C3 #7F41C3 #C041C3
triadic
#7F41C3 #C37F41 #41C37F
tetradic
#7F41C3 #C34144 #85C341 #41C3C0
square
#7F41C3 #C34144 #85C341 #41C3C0
split-complementary
#7F41C3 #C3C041 #44C341
monochromatic
#432169 #613097 #7F41C3 #9E70D2 #BE9EE0

Accessibility & contrast

On white

6.09
#7F41C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7F41C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F41C3
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41C3#FFFFFF#000000##FFFFFF
##7F41C31.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C7
Deuteranopia (green-blind)
#0062C0
Tritanopia (blue-blind)
#715E7D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f41c3;
/* rgb */ color: rgb(127, 65, 195);
/* oklch */ color: oklch(51.9% 0.194 301.9);
Tailwind
colors: {
  custom: {
    50: '#a97ad6',
    500: '#7f41c3',
    950: '#000000',
  },
}
SCSS
$custom: #7f41c3;
$custom-light: #a97ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41c3",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 195
  },
  "hsl": {
    "h": 268.615,
    "s": 52,
    "l": 50.98
  },
  "oklch": {
    "l": 0.519,
    "c": 0.19406,
    "h": 301.9
  },
  "luminance": 0.12233
}

Semantic roles & 50–950 ramp

primary
#7F41C3
secondary
#B1CD93
accent
#DB4C97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F41C3

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

Preview Lab → · Contrast checker → · Palette generator →

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