#7E5BB7#7E5BB7

#7E5BB7 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 54.9% C 0.141 H 299.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7E5BB7
RGBrgb(126, 91, 183)
HSLhsl(263, 39%, 54%)
HSVhsv(263, 50%, 72%)
CMYKcmyk(31.1%, 50.3%, 0%, 28.2%)
CIE-LABlab(46.09, 34.11, -43.72)
CIE-LCHlch(46.09, 55.45, 307.96°)
OKLaboklab(54.93% 0.069 -0.1231)
OKLCHoklch(54.93% 0.141 299.3)
XYZxyz(20.8905, 15.3365, 46.6502)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BB7 #94B75B
analogous
#5B66B7 #7E5BB7 #AC5BB7
triadic
#7E5BB7 #B77E5B #5BB77E
tetradic
#7E5BB7 #B75B66 #94B75B #5BB7AC
square
#7E5BB7 #B75B66 #94B75B #5BB7AC
split-complementary
#7E5BB7 #B7AC5B #66B75B
monochromatic
#452E69 #604194 #7E5BB7 #9F86CA #C1B0DC

Accessibility & contrast

On white

5.16
#7E5BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7E5BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BB7
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BB7#FFFFFF#000000##FFFFFF
##7E5BB71.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6DBA
Deuteranopia (green-blind)
#456CB5
Tritanopia (blue-blind)
#726C80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e5bb7;
/* rgb */ color: rgb(126, 91, 183);
/* oklch */ color: oklch(54.9% 0.141 299.3);
Tailwind
colors: {
  custom: {
    50: '#a68acd',
    500: '#7e5bb7',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bb7;
$custom-light: #a68acd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bb7",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 183
  },
  "hsl": {
    "h": 262.826,
    "s": 38.983,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54932,
    "c": 0.14117,
    "h": 299.3
  },
  "luminance": 0.15337
}

Semantic roles & 50–950 ramp

primary
#7E5BB7
secondary
#BCCBA3
accent
#CF59A2
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #7E5BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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