#7E5FDE#7E5FDE

#7E5FDE is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.1% C 0.185 H 290.7°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7E5FDE
RGBrgb(126, 95, 222)
HSLhsl(255, 66%, 62%)
HSVhsv(255, 57%, 87%)
CMYKcmyk(43.2%, 57.2%, 0%, 12.9%)
CIE-LABlab(49.37, 42.31, -60.88)
CIE-LCHlch(49.37, 74.14, 304.80°)
OKLaboklab(58.12% 0.0656 -0.1735)
OKLCHoklch(58.12% 0.185 290.7)
XYZxyz(25.8775, 17.8931, 71.1833)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FDE #BFDE5F
analogous
#5F7FDE #7E5FDE #BE5FDE
triadic
#7E5FDE #DE7E5F #5FDE7E
tetradic
#7E5FDE #DE5F7F #BFDE5F #5FDEBE
square
#7E5FDE #DE5F7F #BFDE5F #5FDEBE
split-complementary
#7E5FDE #DEBE5F #7FDE5F
monochromatic
#4121A1 #552CD4 #7E5FDE #A792E8 #D0C4F3

Accessibility & contrast

On white

4.59
#7E5FDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7E5FDE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5FDE
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FDE#FFFFFF#000000##FFFFFF
##7E5FDE1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0878E2
Deuteranopia (green-blind)
#1773DB
Tritanopia (blue-blind)
#627B95
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e5fde;
/* rgb */ color: rgb(126, 95, 222);
/* oklch */ color: oklch(58.1% 0.185 290.7);
Tailwind
colors: {
  custom: {
    50: '#a98de9',
    500: '#7e5fde',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fde;
$custom-light: #a98de9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fde",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 222
  },
  "hsl": {
    "h": 254.646,
    "s": 65.803,
    "l": 62.157
  },
  "oklch": {
    "l": 0.58119,
    "c": 0.18549,
    "h": 290.7
  },
  "luminance": 0.17894
}

Semantic roles & 50–950 ramp

primary
#7E5FDE
secondary
#D8E4B5
accent
#CE18A1
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7E5FDE

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

Preview Lab → · Contrast checker → · Palette generator →

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