#7C41B2#7C41B2

#7C41B2 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.3% C 0.174 H 304.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7C41B2
RGBrgb(124, 65, 178)
HSLhsl(271, 47%, 48%)
HSVhsv(271, 63%, 70%)
CMYKcmyk(30.3%, 63.5%, 0%, 30.2%)
CIE-LABlab(40.05, 46.80, -50.47)
CIE-LCHlch(40.05, 68.83, 312.84°)
OKLaboklab(50.34% 0.0999 -0.1429)
OKLCHoklch(50.34% 0.174 304.9)
XYZxyz(18.2366, 11.2801, 43.3274)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C41B2 #77B241
analogous
#4341B2 #7C41B2 #B241B0
triadic
#7C41B2 #B27C41 #41B27C
tetradic
#7C41B2 #B24341 #77B241 #41B0B2
square
#7C41B2 #B24341 #77B241 #41B0B2
split-complementary
#7C41B2 #B0B241 #41B243
monochromatic
#3E2058 #5D3185 #7C41B2 #9A68C8 #B895D8

Accessibility & contrast

On white

6.45
#7C41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7C41B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C41B2
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C41B2#FFFFFF#000000##FFFFFF
##7C41B21.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c41b2;
/* rgb */ color: rgb(124, 65, 178);
/* oklch */ color: oklch(50.3% 0.174 304.9);
Tailwind
colors: {
  custom: {
    50: '#a679ca',
    500: '#7c41b2',
    950: '#000000',
  },
}
SCSS
$custom: #7c41b2;
$custom-light: #a679ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c41b2",
  "rgb": {
    "r": 124,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 271.327,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50342,
    "c": 0.17438,
    "h": 304.9
  },
  "luminance": 0.1128
}

Semantic roles & 50–950 ramp

primary
#7C41B2
secondary
#A6C48B
accent
#D65291
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7C41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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