#7E5BDA#7E5BDA

#7E5BDA is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.2% C 0.186 H 292.2°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7E5BDA
RGBrgb(126, 91, 218)
HSLhsl(257, 63%, 61%)
HSVhsv(257, 58%, 85%)
CMYKcmyk(42.2%, 58.3%, 0%, 14.5%)
CIE-LABlab(48.23, 43.48, -60.44)
CIE-LCHlch(48.23, 74.45, 305.73°)
OKLaboklab(57.2% 0.0703 -0.1722)
OKLCHoklch(57.2% 0.186 292.2)
XYZxyz(24.9967, 16.9790, 68.2763)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BDA #B7DA5B
analogous
#5B78DA #7E5BDA #BD5BDA
triadic
#7E5BDA #DA7E5B #5BDA7E
tetradic
#7E5BDA #DA5B78 #B7DA5B #5BDABD
square
#7E5BDA #DA5B78 #B7DA5B #5BDABD
split-complementary
#7E5BDA #DABD5B #78DA5B
monochromatic
#432298 #592ECA #7E5BDA #A58DE5 #CDBFF1

Accessibility & contrast

On white

4.78
#7E5BDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#7E5BDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BDA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BDA#FFFFFF#000000##FFFFFF
##7E5BDA1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074DE
Deuteranopia (green-blind)
#1470D7
Tritanopia (blue-blind)
#647792
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e5bda;
/* rgb */ color: rgb(126, 91, 218);
/* oklch */ color: oklch(57.2% 0.186 292.2);
Tailwind
colors: {
  custom: {
    50: '#a98be6',
    500: '#7e5bda',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bda;
$custom-light: #a98be6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bda",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 218
  },
  "hsl": {
    "h": 256.535,
    "s": 63.184,
    "l": 60.588
  },
  "oklch": {
    "l": 0.57203,
    "c": 0.18598,
    "h": 292.2
  },
  "luminance": 0.1698
}

Semantic roles & 50–950 ramp

primary
#7E5BDA
secondary
#D3E1B0
accent
#CB1B9A
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7E5BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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