#7E41B2#7E41B2

#7E41B2 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.6% C 0.175 H 305.9°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7E41B2
RGBrgb(126, 65, 178)
HSLhsl(272, 47%, 48%)
HSVhsv(272, 63%, 70%)
CMYKcmyk(29.2%, 63.5%, 0%, 30.2%)
CIE-LABlab(40.30, 47.26, -50.06)
CIE-LCHlch(40.30, 68.84, 313.35°)
OKLaboklab(50.58% 0.1026 -0.1417)
OKLCHoklch(50.58% 0.175 305.9)
XYZxyz(18.5286, 11.4307, 43.3411)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E41B2 #75B241
analogous
#4541B2 #7E41B2 #B241AE
triadic
#7E41B2 #B27E41 #41B27E
tetradic
#7E41B2 #B24541 #75B241 #41AEB2
square
#7E41B2 #B24541 #75B241 #41AEB2
split-complementary
#7E41B2 #AEB241 #41B245
monochromatic
#3F2058 #5E3185 #7E41B2 #9C68C8 #B995D8

Accessibility & contrast

On white

6.39
#7E41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7E41B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E41B2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E41B2#FFFFFF#000000##FFFFFF
##7E41B21.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#275FAF
Tritanopia (blue-blind)
#755873
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e41b2;
/* rgb */ color: rgb(126, 65, 178);
/* oklch */ color: oklch(50.6% 0.175 305.9);
Tailwind
colors: {
  custom: {
    50: '#a779ca',
    500: '#7e41b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e41b2;
$custom-light: #a779ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e41b2",
  "rgb": {
    "r": 126,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 272.389,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50576,
    "c": 0.17489,
    "h": 305.9
  },
  "luminance": 0.11431
}

Semantic roles & 50–950 ramp

primary
#7E41B2
secondary
#A5C48B
accent
#D6528F
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7E41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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