#7E41B9#7E41B9

#7E41B9 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.183 H 304.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7E41B9
RGBrgb(126, 65, 185)
HSLhsl(271, 48%, 49%)
HSVhsv(271, 65%, 73%)
CMYKcmyk(31.9%, 64.9%, 0%, 27.5%)
CIE-LABlab(40.77, 48.95, -53.42)
CIE-LCHlch(40.77, 72.46, 312.49°)
OKLaboklab(51.06% 0.1021 -0.1515)
OKLCHoklch(51.06% 0.183 304)
XYZxyz(19.2495, 11.7191, 47.1374)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E41B9 #7CB941
analogous
#4241B9 #7E41B9 #B941B8
triadic
#7E41B9 #B97E41 #41B97E
tetradic
#7E41B9 #B94241 #7CB941 #41B8B9
square
#7E41B9 #B94241 #7CB941 #41B8B9
split-complementary
#7E41B9 #B8B941 #41B942
monochromatic
#40215E #5F318C #7E41B9 #9C6CCB #BB99DB

Accessibility & contrast

On white

6.28
#7E41B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7E41B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E41B9
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E41B9#FFFFFF#000000##FFFFFF
##7E41B91.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#1C60B6
Tritanopia (blue-blind)
#735B77
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e41b9;
/* rgb */ color: rgb(126, 65, 185);
/* oklch */ color: oklch(51.1% 0.183 304.0);
Tailwind
colors: {
  custom: {
    50: '#a879cf',
    500: '#7e41b9',
    950: '#000000',
  },
}
SCSS
$custom: #7e41b9;
$custom-light: #a879cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e41b9",
  "rgb": {
    "r": 126,
    "g": 65,
    "b": 185
  },
  "hsl": {
    "h": 270.5,
    "s": 48,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51064,
    "c": 0.18273,
    "h": 304
  },
  "luminance": 0.11719
}

Semantic roles & 50–950 ramp

primary
#7E41B9
secondary
#AAC78F
accent
#D85093
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E41B9

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

Preview Lab → · Contrast checker → · Palette generator →

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