#7B41C8#7B41C8

#7B41C8 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.199 H 299.0°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7B41C8
RGBrgb(123, 65, 200)
HSLhsl(266, 55%, 52%)
HSVhsv(266, 68%, 78%)
CMYKcmyk(38.5%, 67.5%, 0%, 21.6%)
CIE-LABlab(41.47, 52.04, -61.06)
CIE-LCHlch(41.47, 80.23, 310.44°)
OKLaboklab(51.83% 0.0963 -0.1741)
OKLCHoklch(51.83% 0.199 299)
XYZxyz(20.4814, 12.1614, 55.9007)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B41C8 #8EC841
analogous
#414BC8 #7B41C8 #BF41C8
triadic
#7B41C8 #C87B41 #41C87B
tetradic
#7B41C8 #C8414B #8EC841 #41C8BF
square
#7B41C8 #C8414B #8EC841 #41C8BF
split-complementary
#7B41C8 #C8BF41 #4BC841
monochromatic
#42206F #5E2E9E #7B41C8 #9C70D6 #BDA0E3

Accessibility & contrast

On white

6.12
#7B41C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7B41C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B41C8
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B41C8#FFFFFF#000000##FFFFFF
##7B41C81.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#0061C5
Tritanopia (blue-blind)
#69617F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7b41c8;
/* rgb */ color: rgb(123, 65, 200);
/* oklch */ color: oklch(51.8% 0.199 299.0);
Tailwind
colors: {
  custom: {
    50: '#a77ada',
    500: '#7b41c8',
    950: '#000000',
  },
}
SCSS
$custom: #7b41c8;
$custom-light: #a77ada;
$custom-dark: #000000;
JSON
{
  "hex": "#7b41c8",
  "rgb": {
    "r": 123,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 265.778,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51828,
    "c": 0.19896,
    "h": 299
  },
  "luminance": 0.12162
}

Semantic roles & 50–950 ramp

primary
#7B41C8
secondary
#B7D095
accent
#DE499E
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B41C8

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

Preview Lab → · Contrast checker → · Palette generator →

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