#7B41B4#7B41B4

#7B41B4 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.4% C 0.176 H 303.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7B41B4
RGBrgb(123, 65, 180)
HSLhsl(270, 47%, 48%)
HSVhsv(270, 64%, 71%)
CMYKcmyk(31.7%, 63.9%, 0%, 29.4%)
CIE-LABlab(40.06, 47.06, -51.64)
CIE-LCHlch(40.06, 69.86, 312.34°)
OKLaboklab(50.37% 0.0984 -0.1464)
OKLCHoklch(50.37% 0.176 303.9)
XYZxyz(18.2950, 11.2869, 44.3859)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B41B4 #7AB441
analogous
#4141B4 #7B41B4 #B441B3
triadic
#7B41B4 #B47B41 #41B47B
tetradic
#7B41B4 #B44141 #7AB441 #41B3B4
square
#7B41B4 #B44141 #7AB441 #41B3B4
split-complementary
#7B41B4 #B3B441 #41B441
monochromatic
#3E215A #5C3187 #7B41B4 #9A69C9 #B896D9

Accessibility & contrast

On white

6.45
#7B41B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7B41B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B41B4
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B41B4#FFFFFF#000000##FFFFFF
##7B41B41.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB8
Deuteranopia (green-blind)
#205EB1
Tritanopia (blue-blind)
#705974
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7b41b4;
/* rgb */ color: rgb(123, 65, 180);
/* oklch */ color: oklch(50.4% 0.176 303.9);
Tailwind
colors: {
  custom: {
    50: '#a579cb',
    500: '#7b41b4',
    950: '#000000',
  },
}
SCSS
$custom: #7b41b4;
$custom-light: #a579cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b41b4",
  "rgb": {
    "r": 123,
    "g": 65,
    "b": 180
  },
  "hsl": {
    "h": 270.261,
    "s": 46.939,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50365,
    "c": 0.1764,
    "h": 303.9
  },
  "luminance": 0.11287
}

Semantic roles & 50–950 ramp

primary
#7B41B4
secondary
#A8C58C
accent
#D75193
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B41B4

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

Preview Lab → · Contrast checker → · Palette generator →

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