#7E5CDE#7E5CDE

#7E5CDE is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.6% C 0.190 H 291.3°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7E5CDE
RGBrgb(126, 92, 222)
HSLhsl(256, 66%, 62%)
HSVhsv(256, 59%, 87%)
CMYKcmyk(43.2%, 58.6%, 0%, 12.9%)
CIE-LABlab(48.71, 44.01, -61.93)
CIE-LCHlch(48.71, 75.98, 305.40°)
OKLaboklab(57.64% 0.069 -0.1766)
OKLCHoklch(57.64% 0.19 291.3)
XYZxyz(25.6125, 17.3630, 71.0950)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CDE #BCDE5C
analogous
#5C7BDE #7E5CDE #BF5CDE
triadic
#7E5CDE #DE7E5C #5CDE7E
tetradic
#7E5CDE #DE5C7B #BCDE5C #5CDEBF
square
#7E5CDE #DE5C7B #BCDE5C #5CDEBF
split-complementary
#7E5CDE #DEBF5C #7BDE5C
monochromatic
#41209F #562BD2 #7E5CDE #A68FE8 #CFC2F3

Accessibility & contrast

On white

4.70
#7E5CDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#7E5CDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5CDE
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CDE#FFFFFF#000000##FFFFFF
##7E5CDE1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E2
Deuteranopia (green-blind)
#0771DB
Tritanopia (blue-blind)
#627994
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7e5cde;
/* rgb */ color: rgb(126, 92, 222);
/* oklch */ color: oklch(57.6% 0.190 291.3);
Tailwind
colors: {
  custom: {
    50: '#a98be9',
    500: '#7e5cde',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cde;
$custom-light: #a98be9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cde",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 222
  },
  "hsl": {
    "h": 255.692,
    "s": 66.327,
    "l": 61.569
  },
  "oklch": {
    "l": 0.5764,
    "c": 0.18961,
    "h": 291.3
  },
  "luminance": 0.17364
}

Semantic roles & 50–950 ramp

primary
#7E5CDE
secondary
#D6E3B3
accent
#CE179E
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7E5CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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