#7B41B2#7B41B2

#7B41B2 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.2% C 0.174 H 304.5°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#7B41B2
RGBrgb(123, 65, 178)
HSLhsl(271, 47%, 48%)
HSVhsv(271, 63%, 70%)
CMYKcmyk(30.9%, 63.5%, 0%, 30.2%)
CIE-LABlab(39.93, 46.57, -50.68)
CIE-LCHlch(39.93, 68.82, 312.58°)
OKLaboklab(50.22% 0.0985 -0.1436)
OKLCHoklch(50.22% 0.174 304.5)
XYZxyz(18.0928, 11.2060, 43.3207)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B41B2 #78B241
analogous
#4241B2 #7B41B2 #B241B1
triadic
#7B41B2 #B27B41 #41B27B
tetradic
#7B41B2 #B24241 #78B241 #41B1B2
square
#7B41B2 #B24241 #78B241 #41B1B2
split-complementary
#7B41B2 #B1B241 #41B242
monochromatic
#3D2058 #5C3185 #7B41B2 #9968C8 #B895D8

Accessibility & contrast

On white

6.48
#7B41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7B41B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B41B2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B41B2#FFFFFF#000000##FFFFFF
##7B41B21.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#235EAF
Tritanopia (blue-blind)
#715973
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7b41b2;
/* rgb */ color: rgb(123, 65, 178);
/* oklch */ color: oklch(50.2% 0.174 304.5);
Tailwind
colors: {
  custom: {
    50: '#a579ca',
    500: '#7b41b2',
    950: '#000000',
  },
}
SCSS
$custom: #7b41b2;
$custom-light: #a579ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b41b2",
  "rgb": {
    "r": 123,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 270.796,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50225,
    "c": 0.17413,
    "h": 304.5
  },
  "luminance": 0.11206
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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