#7E5DBE#7E5DBE

#7E5DBE is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.7% C 0.147 H 297.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7E5DBE
RGBrgb(126, 93, 190)
HSLhsl(260, 43%, 55%)
HSVhsv(260, 51%, 75%)
CMYKcmyk(33.7%, 51.1%, 0%, 25.5%)
CIE-LABlab(46.95, 34.77, -46.42)
CIE-LCHlch(46.95, 58.00, 306.84°)
OKLaboklab(55.7% 0.067 -0.131)
OKLCHoklch(55.7% 0.147 297.1)
XYZxyz(21.8105, 15.9817, 50.6409)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DBE #9DBE5D
analogous
#5D6DBE #7E5DBE #AE5DBE
triadic
#7E5DBE #BE7E5D #5DBE7E
tetradic
#7E5DBE #BE5D6D #9DBE5D #5DBEAE
square
#7E5DBE #BE5D6D #9DBE5D #5DBEAE
split-complementary
#7E5DBE #BEAE5D #6DBE5D
monochromatic
#452E73 #60409E #7E5DBE #A189D0 #C4B4E1

Accessibility & contrast

On white

5.00
#7E5DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7E5DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5DBE
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DBE#FFFFFF#000000##FFFFFF
##7E5DBE1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3970C1
Deuteranopia (green-blind)
#416EBC
Tritanopia (blue-blind)
#707085
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e5dbe;
/* rgb */ color: rgb(126, 93, 190);
/* oklch */ color: oklch(55.7% 0.147 297.1);
Tailwind
colors: {
  custom: {
    50: '#a68cd2',
    500: '#7e5dbe',
    950: '#000000',
  },
}
SCSS
$custom: #7e5dbe;
$custom-light: #a68cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5dbe",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 190
  },
  "hsl": {
    "h": 260.412,
    "s": 42.731,
    "l": 55.49
  },
  "oklch": {
    "l": 0.557,
    "c": 0.14717,
    "h": 297.1
  },
  "luminance": 0.15982
}

Semantic roles & 50–950 ramp

primary
#7E5DBE
secondary
#C2D0A7
accent
#D355A8
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #7E5DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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