#7E5CC1#7E5CC1

#7E5CC1 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.7% C 0.153 H 296.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7E5CC1
RGBrgb(126, 92, 193)
HSLhsl(260, 45%, 56%)
HSVhsv(260, 52%, 76%)
CMYKcmyk(34.7%, 52.3%, 0%, 24.3%)
CIE-LABlab(46.90, 36.15, -48.25)
CIE-LCHlch(46.90, 60.29, 306.84°)
OKLaboklab(55.72% 0.0685 -0.1364)
OKLCHoklch(55.72% 0.153 296.7)
XYZxyz(22.0546, 15.9398, 52.3565)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CC1 #9FC15C
analogous
#5C6CC1 #7E5CC1 #B05CC1
triadic
#7E5CC1 #C17E5C #5CC17E
tetradic
#7E5CC1 #C15C6C #9FC15C #5CC1B0
square
#7E5CC1 #C15C6C #9FC15C #5CC1B0
split-complementary
#7E5CC1 #C1B05C #6CC15C
monochromatic
#452D76 #5F3EA2 #7E5CC1 #A188D2 #C4B5E3

Accessibility & contrast

On white

5.01
#7E5CC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7E5CC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5CC1
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CC1#FFFFFF#000000##FFFFFF
##7E5CC11.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3570C4
Deuteranopia (green-blind)
#3D6EBF
Tritanopia (blue-blind)
#6F7086
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e5cc1;
/* rgb */ color: rgb(126, 92, 193);
/* oklch */ color: oklch(55.7% 0.153 296.7);
Tailwind
colors: {
  custom: {
    50: '#a78bd4',
    500: '#7e5cc1',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cc1;
$custom-light: #a78bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cc1",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 193
  },
  "hsl": {
    "h": 260.198,
    "s": 44.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55716,
    "c": 0.15264,
    "h": 296.7
  },
  "luminance": 0.1594
}

Semantic roles & 50–950 ramp

primary
#7E5CC1
secondary
#C3D1A7
accent
#D553A9
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7E5CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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