#7B41C0#7B41C0

#7B41C0 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.2% C 0.190 H 300.8°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7B41C0
RGBrgb(123, 65, 192)
HSLhsl(267, 50%, 50%)
HSVhsv(267, 66%, 75%)
CMYKcmyk(35.9%, 66.1%, 0%, 24.7%)
CIE-LABlab(40.89, 50.03, -57.34)
CIE-LCHlch(40.89, 76.10, 311.10°)
OKLaboklab(51.23% 0.0973 -0.1632)
OKLCHoklch(51.23% 0.19 300.8)
XYZxyz(19.5708, 11.7972, 51.1050)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B41C0 #86C041
analogous
#4146C0 #7B41C0 #BB41C0
triadic
#7B41C0 #C07B41 #41C07B
tetradic
#7B41C0 #C04146 #86C041 #41C0BB
square
#7B41C0 #C04146 #86C041 #41C0BB
split-complementary
#7B41C0 #C0BB41 #46C041
monochromatic
#402265 #5E3193 #7B41C0 #9B6FCF #BB9DDE

Accessibility & contrast

On white

6.25
#7B41C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7B41C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B41C0
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B41C0#FFFFFF#000000##FFFFFF
##7B41C01.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C4
Deuteranopia (green-blind)
#0060BD
Tritanopia (blue-blind)
#6C5E7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b41c0;
/* rgb */ color: rgb(123, 65, 192);
/* oklch */ color: oklch(51.2% 0.190 300.8);
Tailwind
colors: {
  custom: {
    50: '#a679d4',
    500: '#7b41c0',
    950: '#000000',
  },
}
SCSS
$custom: #7b41c0;
$custom-light: #a679d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b41c0",
  "rgb": {
    "r": 123,
    "g": 65,
    "b": 192
  },
  "hsl": {
    "h": 267.402,
    "s": 50.198,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5123,
    "c": 0.18999,
    "h": 300.8
  },
  "luminance": 0.11797
}

Semantic roles & 50–950 ramp

primary
#7B41C0
secondary
#B1CB92
accent
#DA4E9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B41C0

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

Preview Lab → · Contrast checker → · Palette generator →

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