#7B41C5#7B41C5

#7B41C5 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.196 H 299.6°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7B41C5
RGBrgb(123, 65, 197)
HSLhsl(266, 53%, 51%)
HSVhsv(266, 67%, 77%)
CMYKcmyk(37.6%, 67%, 0%, 22.7%)
CIE-LABlab(41.25, 51.28, -59.67)
CIE-LCHlch(41.25, 78.68, 310.68°)
OKLaboklab(51.6% 0.0967 -0.17)
OKLCHoklch(51.6% 0.196 299.6)
XYZxyz(20.1342, 12.0226, 54.0723)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B41C5 #8BC541
analogous
#4149C5 #7B41C5 #BD41C5
triadic
#7B41C5 #C57B41 #41C57B
tetradic
#7B41C5 #C54149 #8BC541 #41C5BD
square
#7B41C5 #C54149 #8BC541 #41C5BD
split-complementary
#7B41C5 #C5BD41 #49C541
monochromatic
#41216B #5E2F9A #7B41C5 #9C70D3 #BC9FE2

Accessibility & contrast

On white

6.17
#7B41C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7B41C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B41C5
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B41C5#FFFFFF#000000##FFFFFF
##7B41C51.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0060C2
Tritanopia (blue-blind)
#6A607E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b41c5;
/* rgb */ color: rgb(123, 65, 197);
/* oklch */ color: oklch(51.6% 0.196 299.6);
Tailwind
colors: {
  custom: {
    50: '#a779d7',
    500: '#7b41c5',
    950: '#000000',
  },
}
SCSS
$custom: #7b41c5;
$custom-light: #a779d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b41c5",
  "rgb": {
    "r": 123,
    "g": 65,
    "b": 197
  },
  "hsl": {
    "h": 266.364,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51602,
    "c": 0.1956,
    "h": 299.6
  },
  "luminance": 0.12023
}

Semantic roles & 50–950 ramp

primary
#7B41C5
secondary
#B4CE94
accent
#DD4B9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B41C5

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

Preview Lab → · Contrast checker → · Palette generator →

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