#7E4FCA#7E4FCA

#7E4FCA is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.183 H 297.6°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7E4FCA
RGBrgb(126, 79, 202)
HSLhsl(263, 54%, 55%)
HSVhsv(263, 61%, 79%)
CMYKcmyk(37.6%, 60.9%, 0%, 20.8%)
CIE-LABlab(44.65, 45.85, -57.06)
CIE-LCHlch(44.65, 73.20, 308.79°)
OKLaboklab(54.24% 0.0847 -0.1623)
OKLCHoklch(54.24% 0.183 297.6)
XYZxyz(22.0581, 14.2915, 57.4621)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FCA #9BCA4F
analogous
#4F5DCA #7E4FCA #BC4FCA
triadic
#7E4FCA #CA7E4F #4FCA7E
tetradic
#7E4FCA #CA4F5D #9BCA4F #4FCABC
square
#7E4FCA #CA4F5D #9BCA4F #4FCABC
split-complementary
#7E4FCA #CABC4F #5DCA4F
monochromatic
#45257A #6033A9 #7E4FCA #A07ED8 #C3ADE6

Accessibility & contrast

On white

5.44
#7E4FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7E4FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FCA
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FCA#FFFFFF#000000##FFFFFF
##7E4FCA1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#1868C7
Tritanopia (blue-blind)
#6C6A85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4fca;
/* rgb */ color: rgb(126, 79, 202);
/* oklch */ color: oklch(54.2% 0.183 297.6);
Tailwind
colors: {
  custom: {
    50: '#a882db',
    500: '#7e4fca',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fca;
$custom-light: #a882db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fca",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 202
  },
  "hsl": {
    "h": 262.927,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54244,
    "c": 0.18303,
    "h": 297.6
  },
  "luminance": 0.14292
}

Semantic roles & 50–950 ramp

primary
#7E4FCA
secondary
#C0D4A1
accent
#DD4BA5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E4FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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