#7B41B3#7B41B3

#7B41B3 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.3% C 0.175 H 304.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#7B41B3
RGBrgb(123, 65, 179)
HSLhsl(271, 47%, 48%)
HSVhsv(271, 64%, 70%)
CMYKcmyk(31.3%, 63.7%, 0%, 29.8%)
CIE-LABlab(39.99, 46.81, -51.16)
CIE-LCHlch(39.99, 69.34, 312.46°)
OKLaboklab(50.3% 0.0985 -0.145)
OKLCHoklch(50.3% 0.175 304.2)
XYZxyz(18.1935, 11.2463, 43.8514)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B41B3 #79B341
analogous
#4241B3 #7B41B3 #B341B2
triadic
#7B41B3 #B37B41 #41B37B
tetradic
#7B41B3 #B34241 #79B341 #41B2B3
square
#7B41B3 #B34241 #79B341 #41B2B3
split-complementary
#7B41B3 #B2B341 #41B342
monochromatic
#3D2059 #5C3186 #7B41B3 #9969C8 #B896D9

Accessibility & contrast

On white

6.46
#7B41B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7B41B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B41B3
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B41B3#FFFFFF#000000##FFFFFF
##7B41B31.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#215EB0
Tritanopia (blue-blind)
#715974
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7b41b3;
/* rgb */ color: rgb(123, 65, 179);
/* oklch */ color: oklch(50.3% 0.175 304.2);
Tailwind
colors: {
  custom: {
    50: '#a579ca',
    500: '#7b41b3',
    950: '#000000',
  },
}
SCSS
$custom: #7b41b3;
$custom-light: #a579ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b41b3",
  "rgb": {
    "r": 123,
    "g": 65,
    "b": 179
  },
  "hsl": {
    "h": 270.526,
    "s": 46.721,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50295,
    "c": 0.17527,
    "h": 304.2
  },
  "luminance": 0.11246
}

Semantic roles & 50–950 ramp

primary
#7B41B3
secondary
#A7C48B
accent
#D65193
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B41B3

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

Preview Lab → · Contrast checker → · Palette generator →

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