#7B41BB#7B41BB

#7B41BB is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.184 H 302.1°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7B41BB
RGBrgb(123, 65, 187)
HSLhsl(269, 48%, 49%)
HSVhsv(269, 65%, 73%)
CMYKcmyk(34.2%, 65.2%, 0%, 26.7%)
CIE-LABlab(40.54, 48.78, -54.98)
CIE-LCHlch(40.54, 73.50, 311.58°)
OKLaboklab(50.86% 0.0978 -0.1562)
OKLCHoklch(50.86% 0.184 302.1)
XYZxyz(19.0262, 11.5794, 48.2367)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B41BB #81BB41
analogous
#4144BB #7B41BB #B841BB
triadic
#7B41BB #BB7B41 #41BB7B
tetradic
#7B41BB #BB4144 #81BB41 #41BBB8
square
#7B41BB #BB4144 #81BB41 #41BBB8
split-complementary
#7B41BB #BBB841 #44BB41
monochromatic
#3F2160 #5D318E #7B41BB #9A6DCC #BA9ADC

Accessibility & contrast

On white

6.33
#7B41BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7B41BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B41BB
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B41BB#FFFFFF#000000##FFFFFF
##7B41BB1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#0F5FB8
Tritanopia (blue-blind)
#6E5C78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b41bb;
/* rgb */ color: rgb(123, 65, 187);
/* oklch */ color: oklch(50.9% 0.184 302.1);
Tailwind
colors: {
  custom: {
    50: '#a679d0',
    500: '#7b41bb',
    950: '#000000',
  },
}
SCSS
$custom: #7b41bb;
$custom-light: #a679d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b41bb",
  "rgb": {
    "r": 123,
    "g": 65,
    "b": 187
  },
  "hsl": {
    "h": 268.525,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50864,
    "c": 0.18434,
    "h": 302.1
  },
  "luminance": 0.11579
}

Semantic roles & 50–950 ramp

primary
#7B41BB
secondary
#ADC890
accent
#D85097
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7B41BB

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

Preview Lab → · Contrast checker → · Palette generator →

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