#7E41B8#7E41B8

#7E41B8 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.182 H 304.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7E41B8
RGBrgb(126, 65, 184)
HSLhsl(271, 48%, 49%)
HSVhsv(271, 65%, 72%)
CMYKcmyk(31.5%, 64.7%, 0%, 27.8%)
CIE-LABlab(40.70, 48.70, -52.95)
CIE-LCHlch(40.70, 71.94, 312.61°)
OKLaboklab(50.99% 0.1022 -0.1501)
OKLCHoklch(50.99% 0.182 304.2)
XYZxyz(19.1443, 11.6770, 46.5834)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E41B8 #7BB841
analogous
#4341B8 #7E41B8 #B841B7
triadic
#7E41B8 #B87E41 #41B87E
tetradic
#7E41B8 #B84341 #7BB841 #41B7B8
square
#7E41B8 #B84341 #7BB841 #41B7B8
split-complementary
#7E41B8 #B7B841 #41B843
monochromatic
#40215E #5F318B #7E41B8 #9C6BCB #BB99DB

Accessibility & contrast

On white

6.30
#7E41B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E41B8
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E41B8#FFFFFF#000000##FFFFFF
##7E41B81.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e41b8;
/* rgb */ color: rgb(126, 65, 184);
/* oklch */ color: oklch(51.0% 0.182 304.2);
Tailwind
colors: {
  custom: {
    50: '#a879ce',
    500: '#7e41b8',
    950: '#000000',
  },
}
SCSS
$custom: #7e41b8;
$custom-light: #a879ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e41b8",
  "rgb": {
    "r": 126,
    "g": 65,
    "b": 184
  },
  "hsl": {
    "h": 270.756,
    "s": 47.791,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50994,
    "c": 0.18161,
    "h": 304.2
  },
  "luminance": 0.11677
}

Semantic roles & 50–950 ramp

primary
#7E41B8
secondary
#AAC78E
accent
#D75092
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E41B8

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

Preview Lab → · Contrast checker → · Palette generator →

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