#7E4FCE#7E4FCE

#7E4FCE is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.5% C 0.188 H 296.7°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7E4FCE
RGBrgb(126, 79, 206)
HSLhsl(262, 56%, 56%)
HSVhsv(262, 62%, 81%)
CMYKcmyk(38.8%, 61.7%, 0%, 19.2%)
CIE-LABlab(44.92, 46.90, -58.93)
CIE-LCHlch(44.92, 75.31, 308.52°)
OKLaboklab(54.53% 0.0845 -0.1678)
OKLCHoklch(54.53% 0.188 296.7)
XYZxyz(22.5379, 14.4834, 59.9887)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FCE #9FCE4F
analogous
#4F5FCE #7E4FCE #BD4FCE
triadic
#7E4FCE #CE7E4F #4FCE7E
tetradic
#7E4FCE #CE4F5F #9FCE4F #4FCEBD
square
#7E4FCE #CE4F5F #9FCE4F #4FCEBD
split-complementary
#7E4FCE #CEBD4F #5FCE4F
monochromatic
#45237F #5F31AF #7E4FCE #A17FDB #C4AFE9

Accessibility & contrast

On white

5.39
#7E4FCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7E4FCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FCE
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FCE#FFFFFF#000000##FFFFFF
##7E4FCE1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e4fce;
/* rgb */ color: rgb(126, 79, 206);
/* oklch */ color: oklch(54.5% 0.188 296.7);
Tailwind
colors: {
  custom: {
    50: '#a983de',
    500: '#7e4fce',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fce;
$custom-light: #a983de;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fce",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 206
  },
  "hsl": {
    "h": 262.205,
    "s": 56.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54526,
    "c": 0.18782,
    "h": 296.7
  },
  "luminance": 0.14484
}

Semantic roles & 50–950 ramp

primary
#7E4FCE
secondary
#C3D7A2
accent
#E048A8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E4FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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