#7B41B5#7B41B5

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

Color values

HEX#7B41B5
RGBrgb(123, 65, 181)
HSLhsl(270, 47%, 48%)
HSVhsv(270, 64%, 71%)
CMYKcmyk(32%, 64.1%, 0%, 29%)
CIE-LABlab(40.13, 47.30, -52.12)
CIE-LCHlch(40.13, 70.38, 312.22°)
OKLaboklab(50.44% 0.0983 -0.1478)
OKLCHoklch(50.44% 0.178 303.6)
XYZxyz(18.3973, 11.3278, 44.9244)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B41B5 #7BB541
analogous
#4141B5 #7B41B5 #B541B5
triadic
#7B41B5 #B57B41 #41B57B
tetradic
#7B41B5 #B54141 #7BB541 #41B5B5
square
#7B41B5 #B54141 #7BB541 #41B5B5
split-complementary
#7B41B5 #B5B541 #41B541
monochromatic
#3E215B #5C3188 #7B41B5 #9A6AC9 #B897DA

Accessibility & contrast

On white

6.43
#7B41B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7B41B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B41B5
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B41B5#FFFFFF#000000##FFFFFF
##7B41B51.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#1E5EB2
Tritanopia (blue-blind)
#705A75
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7b41b5;
/* rgb */ color: rgb(123, 65, 181);
/* oklch */ color: oklch(50.4% 0.178 303.6);
Tailwind
colors: {
  custom: {
    50: '#a579cc',
    500: '#7b41b5',
    950: '#000000',
  },
}
SCSS
$custom: #7b41b5;
$custom-light: #a579cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b41b5",
  "rgb": {
    "r": 123,
    "g": 65,
    "b": 181
  },
  "hsl": {
    "h": 270,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50436,
    "c": 0.17754,
    "h": 303.6
  },
  "luminance": 0.11328
}

Semantic roles & 50–950 ramp

primary
#7B41B5
secondary
#A9C58C
accent
#D75194
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B41B5

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

Preview Lab → · Contrast checker → · Palette generator →

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