#7E4CD5#7E4CD5

#7E4CD5 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.6% C 0.200 H 295.8°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7E4CD5
RGBrgb(126, 76, 213)
HSLhsl(262, 62%, 57%)
HSVhsv(262, 64%, 84%)
CMYKcmyk(40.8%, 64.3%, 0%, 16.5%)
CIE-LABlab(44.81, 50.34, -63.12)
CIE-LCHlch(44.81, 80.73, 308.57°)
OKLaboklab(54.6% 0.0872 -0.1801)
OKLCHoklch(54.6% 0.2 295.8)
XYZxyz(23.1957, 14.4081, 64.4968)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CD5 #A3D54C
analogous
#4C5FD5 #7E4CD5 #C34CD5
triadic
#7E4CD5 #D57E4C #4CD57E
tetradic
#7E4CD5 #D54C5F #A3D54C #4CD5C3
square
#7E4CD5 #D54C5F #A3D54C #4CD5C3
split-complementary
#7E4CD5 #D5C34C #5FD54C
monochromatic
#452087 #5F2BB9 #7E4CD5 #A27EE1 #C5AFEC

Accessibility & contrast

On white

5.41
#7E4CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7E4CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CD5
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CD5#FFFFFF#000000##FFFFFF
##7E4CD51.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#0068D2
Tritanopia (blue-blind)
#686C8A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4cd5;
/* rgb */ color: rgb(126, 76, 213);
/* oklch */ color: oklch(54.6% 0.200 295.8);
Tailwind
colors: {
  custom: {
    50: '#a981e3',
    500: '#7e4cd5',
    950: '#000000',
  },
}
SCSS
$custom: #7e4cd5;
$custom-light: #a981e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4cd5",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 213
  },
  "hsl": {
    "h": 261.898,
    "s": 61.991,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54604,
    "c": 0.20009,
    "h": 295.8
  },
  "luminance": 0.14409
}

Semantic roles & 50–950 ramp

primary
#7E4CD5
secondary
#C6DAA2
accent
#E543AA
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #7E4CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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