#7E5FD8#7E5FD8

#7E5FD8 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.7% C 0.178 H 291.6°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7E5FD8
RGBrgb(126, 95, 216)
HSLhsl(255, 61%, 61%)
HSVhsv(255, 56%, 85%)
CMYKcmyk(41.7%, 56%, 0%, 15.3%)
CIE-LABlab(48.98, 40.65, -58.10)
CIE-LCHlch(48.98, 70.91, 304.98°)
OKLaboklab(57.71% 0.0656 -0.1653)
OKLCHoklch(57.71% 0.178 291.6)
XYZxyz(25.0877, 17.5772, 67.0233)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FD8 #B9D85F
analogous
#5F7CD8 #7E5FD8 #BA5FD8
triadic
#7E5FD8 #D87E5F #5FD87E
tetradic
#7E5FD8 #D85F7C #B9D85F #5FD8BA
square
#7E5FD8 #D85F7C #B9D85F #5FD8BA
split-complementary
#7E5FD8 #D8BA5F #7CD85F
monochromatic
#422598 #5831C9 #7E5FD8 #A690E4 #CDC1F0

Accessibility & contrast

On white

4.65
#7E5FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#7E5FD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5FD8
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FD8#FFFFFF#000000##FFFFFF
##7E5FD81.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C76DC
Deuteranopia (green-blind)
#2572D5
Tritanopia (blue-blind)
#657992
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7e5fd8;
/* rgb */ color: rgb(126, 95, 216);
/* oklch */ color: oklch(57.7% 0.178 291.6);
Tailwind
colors: {
  custom: {
    50: '#a98de5',
    500: '#7e5fd8',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fd8;
$custom-light: #a98de5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fd8",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 216
  },
  "hsl": {
    "h": 255.372,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.57711,
    "c": 0.17787,
    "h": 291.6
  },
  "luminance": 0.17578
}

Semantic roles & 50–950 ramp

primary
#7E5FD8
secondary
#D5E0B3
accent
#C81D9D
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7E5FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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