#7E5CDB#7E5CDB

#7E5CDB is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.4% C 0.186 H 291.8°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7E5CDB
RGBrgb(126, 92, 219)
HSLhsl(256, 64%, 61%)
HSVhsv(256, 58%, 86%)
CMYKcmyk(42.5%, 58%, 0%, 14.1%)
CIE-LABlab(48.52, 43.19, -60.55)
CIE-LCHlch(48.52, 74.37, 305.50°)
OKLaboklab(57.43% 0.0691 -0.1725)
OKLCHoklch(57.43% 0.186 291.8)
XYZxyz(25.2140, 17.2036, 68.9962)
Luminance0.1720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CDB #B9DB5C
analogous
#5C79DB #7E5CDB #BD5CDB
triadic
#7E5CDB #DB7E5C #5CDB7E
tetradic
#7E5CDB #DB5C79 #B9DB5C #5CDBBD
square
#7E5CDB #DB5C79 #B9DB5C #5CDBBD
split-complementary
#7E5CDB #DBBD5C #79DB5C
monochromatic
#42229A #582DCD #7E5CDB #A68EE6 #CDC0F1

Accessibility & contrast

On white

4.73
#7E5CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7E5CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5CDB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CDB#FFFFFF#000000##FFFFFF
##7E5CDB1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075DF
Deuteranopia (green-blind)
#1571D8
Tritanopia (blue-blind)
#647893
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e5cdb;
/* rgb */ color: rgb(126, 92, 219);
/* oklch */ color: oklch(57.4% 0.186 291.8);
Tailwind
colors: {
  custom: {
    50: '#a98be7',
    500: '#7e5cdb',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cdb;
$custom-light: #a98be7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cdb",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 256.063,
    "s": 63.819,
    "l": 60.98
  },
  "oklch": {
    "l": 0.57431,
    "c": 0.18585,
    "h": 291.8
  },
  "luminance": 0.17204
}

Semantic roles & 50–950 ramp

primary
#7E5CDB
secondary
#D5E1B1
accent
#CC1A9C
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7E5CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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