#7C41AB#7C41AB

#7C41AB is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.9% C 0.166 H 307.0°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7C41AB
RGBrgb(124, 65, 171)
HSLhsl(273, 45%, 46%)
HSVhsv(273, 62%, 67%)
CMYKcmyk(27.5%, 62%, 0%, 32.9%)
CIE-LABlab(39.59, 45.11, -47.06)
CIE-LCHlch(39.59, 65.19, 313.79°)
OKLaboklab(49.86% 0.1002 -0.1329)
OKLCHoklch(49.86% 0.166 307)
XYZxyz(17.5516, 11.0062, 39.7199)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C41AB #70AB41
analogous
#4741AB #7C41AB #AB41A5
triadic
#7C41AB #AB7C41 #41AB7C
tetradic
#7C41AB #AB4741 #70AB41 #41A5AB
square
#7C41AB #AB4741 #70AB41 #41A5AB
split-complementary
#7C41AB #A5AB41 #41AB47
monochromatic
#3C1F52 #5C307F #7C41AB #9A65C4 #B791D5

Accessibility & contrast

On white

6.56
#7C41AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7C41AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C41AB
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C41AB#FFFFFF#000000##FFFFFF
##7C41AB1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5BAE
Deuteranopia (green-blind)
#2D5EA9
Tritanopia (blue-blind)
#745670
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7c41ab;
/* rgb */ color: rgb(124, 65, 171);
/* oklch */ color: oklch(49.9% 0.166 307.0);
Tailwind
colors: {
  custom: {
    50: '#a579c5',
    500: '#7c41ab',
    950: '#000000',
  },
}
SCSS
$custom: #7c41ab;
$custom-light: #a579c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c41ab",
  "rgb": {
    "r": 124,
    "g": 65,
    "b": 171
  },
  "hsl": {
    "h": 273.396,
    "s": 44.915,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49864,
    "c": 0.16645,
    "h": 307
  },
  "luminance": 0.11006
}

Semantic roles & 50–950 ramp

primary
#7C41AB
secondary
#A1C187
accent
#D5538D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7C41AB

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

Preview Lab → · Contrast checker → · Palette generator →

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