#7E4FCD#7E4FCD

#7E4FCD is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.5% C 0.187 H 296.9°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7E4FCD
RGBrgb(126, 79, 205)
HSLhsl(262, 56%, 56%)
HSVhsv(262, 61%, 80%)
CMYKcmyk(38.5%, 61.5%, 0%, 19.6%)
CIE-LABlab(44.85, 46.64, -58.46)
CIE-LCHlch(44.85, 74.78, 308.58°)
OKLaboklab(54.46% 0.0845 -0.1664)
OKLCHoklch(54.46% 0.187 296.9)
XYZxyz(22.4168, 14.4350, 59.3510)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FCD #9ECD4F
analogous
#4F5FCD #7E4FCD #BD4FCD
triadic
#7E4FCD #CD7E4F #4FCD7E
tetradic
#7E4FCD #CD4F5F #9ECD4F #4FCDBD
square
#7E4FCD #CD4F5F #9ECD4F #4FCDBD
split-complementary
#7E4FCD #CDBD4F #5FCD4F
monochromatic
#45247E #6031AE #7E4FCD #A17FDB #C4AEE8

Accessibility & contrast

On white

5.40
#7E4FCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7E4FCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FCD
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FCD#FFFFFF#000000##FFFFFF
##7E4FCD1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0F69CA
Tritanopia (blue-blind)
#6B6B87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4fcd;
/* rgb */ color: rgb(126, 79, 205);
/* oklch */ color: oklch(54.5% 0.187 296.9);
Tailwind
colors: {
  custom: {
    50: '#a983dd',
    500: '#7e4fcd',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fcd;
$custom-light: #a983dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fcd",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 205
  },
  "hsl": {
    "h": 262.381,
    "s": 55.752,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54455,
    "c": 0.18663,
    "h": 296.9
  },
  "luminance": 0.14435
}

Semantic roles & 50–950 ramp

primary
#7E4FCD
secondary
#C3D6A2
accent
#DF49A7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E4FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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