#7F41B0#7F41B0

#7F41B0 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.6% C 0.173 H 307.0°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7F41B0
RGBrgb(127, 65, 176)
HSLhsl(274, 46%, 47%)
HSVhsv(274, 63%, 69%)
CMYKcmyk(27.8%, 63.1%, 0%, 31%)
CIE-LABlab(40.29, 47.01, -48.88)
CIE-LCHlch(40.29, 67.82, 313.89°)
OKLaboklab(50.56% 0.104 -0.1382)
OKLCHoklch(50.56% 0.173 307)
XYZxyz(18.4775, 11.4274, 42.2982)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41B0 #72B041
analogous
#4841B0 #7F41B0 #B041A9
triadic
#7F41B0 #B07F41 #41B07F
tetradic
#7F41B0 #B04841 #72B041 #41A9B0
square
#7F41B0 #B04841 #72B041 #41A9B0
split-complementary
#7F41B0 #A9B041 #41B048
monochromatic
#3E2057 #5F3083 #7F41B0 #9D67C7 #BA94D7

Accessibility & contrast

On white

6.39
#7F41B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7F41B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F41B0
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41B0#FFFFFF#000000##FFFFFF
##7F41B01.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB3
Deuteranopia (green-blind)
#2B5FAD
Tritanopia (blue-blind)
#775872
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f41b0;
/* rgb */ color: rgb(127, 65, 176);
/* oklch */ color: oklch(50.6% 0.173 307.0);
Tailwind
colors: {
  custom: {
    50: '#a879c8',
    500: '#7f41b0',
    950: '#000000',
  },
}
SCSS
$custom: #7f41b0;
$custom-light: #a879c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41b0",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 176
  },
  "hsl": {
    "h": 273.514,
    "s": 46.058,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50558,
    "c": 0.17293,
    "h": 307
  },
  "luminance": 0.11427
}

Semantic roles & 50–950 ramp

primary
#7F41B0
secondary
#A3C38A
accent
#D6528C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F41B0

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

Preview Lab → · Contrast checker → · Palette generator →

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