#7E4DC3#7E4DC3

#7E4DC3 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.5% C 0.177 H 299.5°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#7E4DC3
RGBrgb(126, 77, 195)
HSLhsl(265, 50%, 53%)
HSVhsv(265, 61%, 76%)
CMYKcmyk(35.4%, 60.5%, 0%, 23.5%)
CIE-LABlab(43.78, 45.13, -54.41)
CIE-LCHlch(43.78, 70.69, 309.67°)
OKLaboklab(53.46% 0.0873 -0.1545)
OKLCHoklch(53.46% 0.177 299.5)
XYZxyz(21.1060, 13.6833, 53.1484)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DC3 #92C34D
analogous
#4D57C3 #7E4DC3 #B94DC3
triadic
#7E4DC3 #C37E4D #4DC37E
tetradic
#7E4DC3 #C34D57 #92C34D #4DC3B9
square
#7E4DC3 #C34D57 #92C34D #4DC3B9
split-complementary
#7E4DC3 #C3B94D #57C34D
monochromatic
#452670 #61359E #7E4DC3 #9F7BD2 #C0A9E2

Accessibility & contrast

On white

5.62
#7E4DC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#7E4DC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DC3
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DC3#FFFFFF#000000##FFFFFF
##7E4DC31.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C7
Deuteranopia (green-blind)
#2266C0
Tritanopia (blue-blind)
#6F6681
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4dc3;
/* rgb */ color: rgb(126, 77, 195);
/* oklch */ color: oklch(53.5% 0.177 299.5);
Tailwind
colors: {
  custom: {
    50: '#a881d6',
    500: '#7e4dc3',
    950: '#000000',
  },
}
SCSS
$custom: #7e4dc3;
$custom-light: #a881d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4dc3",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 195
  },
  "hsl": {
    "h": 264.915,
    "s": 49.58,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5346,
    "c": 0.17747,
    "h": 299.5
  },
  "luminance": 0.13684
}

Semantic roles & 50–950 ramp

primary
#7E4DC3
secondary
#BACF9D
accent
#D94FA0
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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