#7E5CEC#7E5CEC

#7E5CEC is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.6% C 0.207 H 289.3°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7E5CEC
RGBrgb(126, 92, 236)
HSLhsl(254, 79%, 64%)
HSVhsv(254, 61%, 93%)
CMYKcmyk(46.6%, 61%, 0%, 7.5%)
CIE-LABlab(49.67, 47.90, -68.28)
CIE-LCHlch(49.67, 83.41, 305.05°)
OKLaboklab(58.64% 0.0684 -0.1953)
OKLCHoklch(58.64% 0.207 289.3)
XYZxyz(27.5673, 18.1450, 81.3904)
Luminance0.1815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CEC #CAEC5C
analogous
#5C82EC #7E5CEC #C65CEC
triadic
#7E5CEC #EC7E5C #5CEC7E
tetradic
#7E5CEC #EC5C82 #CAEC5C #5CECC6
square
#7E5CEC #EC5C82 #CAEC5C #5CECC6
split-complementary
#7E5CEC #ECC65C #82EC5C
monochromatic
#3C15B8 #5325E6 #7E5CEC #A993F2 #D5CAF9

Accessibility & contrast

On white

4.54
#7E5CEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#7E5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5CEC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CEC#FFFFFF#000000##000000
##7E5CEC1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F1
Deuteranopia (green-blind)
#0073E9
Tritanopia (blue-blind)
#5B7E9B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e5cec;
/* rgb */ color: rgb(126, 92, 236);
/* oklch */ color: oklch(58.6% 0.207 289.3);
Tailwind
colors: {
  custom: {
    50: '#ab8cf3',
    500: '#7e5cec',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cec;
$custom-light: #ab8cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cec",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 254.167,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.58644,
    "c": 0.20691,
    "h": 289.3
  },
  "luminance": 0.18146
}

Semantic roles & 50–950 ramp

primary
#7E5CEC
secondary
#DFEBB9
accent
#DB0AAA
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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