#7E5DDC#7E5DDC

#7E5DDC is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.7% C 0.186 H 291.5°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7E5DDC
RGBrgb(126, 93, 220)
HSLhsl(256, 64%, 61%)
HSVhsv(256, 58%, 86%)
CMYKcmyk(42.7%, 57.7%, 0%, 13.7%)
CIE-LABlab(48.80, 42.90, -60.66)
CIE-LCHlch(48.80, 74.30, 305.26°)
OKLaboklab(57.66% 0.0679 -0.1729)
OKLCHoklch(57.66% 0.186 291.5)
XYZxyz(25.4332, 17.4308, 69.7207)
Luminance0.1743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DDC #BBDC5D
analogous
#5D7CDC #7E5DDC #BE5DDC
triadic
#7E5DDC #DC7E5D #5DDC7E
tetradic
#7E5DDC #DC5D7C #BBDC5D #5DDCBE
square
#7E5DDC #DC5D7C #BBDC5D #5DDCBE
split-complementary
#7E5DDC #DCBE5D #7CDC5D
monochromatic
#42229D #572DCF #7E5DDC #A68FE7 #CEC2F2

Accessibility & contrast

On white

4.68
#7E5DDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#7E5DDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5DDC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DDC#FFFFFF#000000##FFFFFF
##7E5DDC1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0176E0
Deuteranopia (green-blind)
#1571D9
Tritanopia (blue-blind)
#637994
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7e5ddc;
/* rgb */ color: rgb(126, 93, 220);
/* oklch */ color: oklch(57.7% 0.186 291.5);
Tailwind
colors: {
  custom: {
    50: '#a98ce8',
    500: '#7e5ddc',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ddc;
$custom-light: #a98ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ddc",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 220
  },
  "hsl": {
    "h": 255.591,
    "s": 64.467,
    "l": 61.373
  },
  "oklch": {
    "l": 0.5766,
    "c": 0.18573,
    "h": 291.5
  },
  "luminance": 0.17432
}

Semantic roles & 50–950 ramp

primary
#7E5DDC
secondary
#D6E2B3
accent
#CC199E
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7E5DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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