#7E5BCE#7E5BCE

#7E5BCE is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.4% C 0.171 H 294.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7E5BCE
RGBrgb(126, 91, 206)
HSLhsl(258, 54%, 58%)
HSVhsv(258, 56%, 81%)
CMYKcmyk(38.8%, 55.8%, 0%, 19.2%)
CIE-LABlab(47.46, 40.21, -54.83)
CIE-LCHlch(47.46, 67.99, 306.25°)
OKLaboklab(56.39% 0.0703 -0.1557)
OKLCHoklch(56.39% 0.171 294.3)
XYZxyz(23.4829, 16.3735, 60.3037)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BCE #ABCE5B
analogous
#5B71CE #7E5BCE #B75BCE
triadic
#7E5BCE #CE7E5B #5BCE7E
tetradic
#7E5BCE #CE5B71 #ABCE5B #5BCEB7
square
#7E5BCE #CE5B71 #ABCE5B #5BCEB7
split-complementary
#7E5BCE #CEB75B #71CE5B
monochromatic
#452886 #5D36B6 #7E5BCE #A38ADC #C8B9EA

Accessibility & contrast

On white

4.91
#7E5BCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7E5BCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BCE
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BCE#FFFFFF#000000##FFFFFF
##7E5BCE1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2172D2
Deuteranopia (green-blind)
#2D6FCB
Tritanopia (blue-blind)
#6A738C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e5bce;
/* rgb */ color: rgb(126, 91, 206);
/* oklch */ color: oklch(56.4% 0.171 294.3);
Tailwind
colors: {
  custom: {
    50: '#a88ade',
    500: '#7e5bce',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bce;
$custom-light: #a88ade;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bce",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 206
  },
  "hsl": {
    "h": 258.261,
    "s": 53.991,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56388,
    "c": 0.17085,
    "h": 294.3
  },
  "luminance": 0.16374
}

Semantic roles & 50–950 ramp

primary
#7E5BCE
secondary
#CBD9AB
accent
#DD4AB1
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5BCE

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

Preview Lab → · Contrast checker → · Palette generator →

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