#7E4CDE#7E4CDE

#7E4CDE is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.3% C 0.211 H 294.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7E4CDE
RGBrgb(126, 76, 222)
HSLhsl(261, 69%, 58%)
HSVhsv(261, 66%, 87%)
CMYKcmyk(43.2%, 65.8%, 0%, 12.9%)
CIE-LABlab(45.47, 52.70, -67.20)
CIE-LCHlch(45.47, 85.40, 308.11°)
OKLaboklab(55.28% 0.0862 -0.1921)
OKLCHoklch(55.28% 0.211 294.2)
XYZxyz(24.3699, 14.8778, 70.6808)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CDE #ACDE4C
analogous
#4C63DE #7E4CDE #C74CDE
triadic
#7E4CDE #DE7E4C #4CDE7E
tetradic
#7E4CDE #DE4C63 #ACDE4C #4CDEC7
square
#7E4CDE #DE4C63 #ACDE4C #4CDEC7
split-complementary
#7E4CDE #DEC74C #63DE4C
monochromatic
#451B94 #5D25C8 #7E4CDE #A380E8 #C8B3F1

Accessibility & contrast

On white

5.28
#7E4CDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7E4CDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CDE
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CDE#FFFFFF#000000##FFFFFF
##7E4CDE1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE2
Deuteranopia (green-blind)
#0069DB
Tritanopia (blue-blind)
#636F8F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e4cde;
/* rgb */ color: rgb(126, 76, 222);
/* oklch */ color: oklch(55.3% 0.211 294.2);
Tailwind
colors: {
  custom: {
    50: '#aa81e9',
    500: '#7e4cde',
    950: '#000000',
  },
}
SCSS
$custom: #7e4cde;
$custom-light: #aa81e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4cde",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 222
  },
  "hsl": {
    "h": 260.548,
    "s": 68.868,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55281,
    "c": 0.21053,
    "h": 294.2
  },
  "luminance": 0.14878
}

Semantic roles & 50–950 ramp

primary
#7E4CDE
secondary
#CCE0A6
accent
#EC3CB0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E4CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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