#7B41A2#7B41A2

#7B41A2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.2% C 0.156 H 309.4°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7B41A2
RGBrgb(123, 65, 162)
HSLhsl(276, 43%, 45%)
HSVhsv(276, 60%, 64%)
CMYKcmyk(24.1%, 59.9%, 0%, 36.5%)
CIE-LABlab(38.90, 42.73, -42.80)
CIE-LCHlch(38.90, 60.48, 314.95°)
OKLaboklab(49.15% 0.099 -0.1205)
OKLCHoklch(49.15% 0.156 309.4)
XYZxyz(16.5790, 10.6005, 35.3481)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B41A2 #68A241
analogous
#4B41A2 #7B41A2 #A24199
triadic
#7B41A2 #A27B41 #41A27B
tetradic
#7B41A2 #A24B41 #68A241 #4199A2
square
#7B41A2 #A24B41 #68A241 #4199A2
split-complementary
#7B41A2 #99A241 #41A24B
monochromatic
#391E4B #5A2F76 #7B41A2 #9961BF #B58CD1

Accessibility & contrast

On white

6.73
#7B41A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7B41A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B41A2
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B41A2#FFFFFF#000000##FFFFFF
##7B41A21.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C59A5
Deuteranopia (green-blind)
#355CA0
Tritanopia (blue-blind)
#76536B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b41a2;
/* rgb */ color: rgb(123, 65, 162);
/* oklch */ color: oklch(49.2% 0.156 309.4);
Tailwind
colors: {
  custom: {
    50: '#a478be',
    500: '#7b41a2',
    950: '#000000',
  },
}
SCSS
$custom: #7b41a2;
$custom-light: #a478be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b41a2",
  "rgb": {
    "r": 123,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 275.876,
    "s": 42.731,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49151,
    "c": 0.15591,
    "h": 309.4
  },
  "luminance": 0.106
}

Semantic roles & 50–950 ramp

primary
#7B41A2
secondary
#9ABC83
accent
#D35588
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #7B41A2

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

Preview Lab → · Contrast checker → · Palette generator →

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