#7E5BCA#7E5BCA

#7E5BCA is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.1% C 0.166 H 295.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7E5BCA
RGBrgb(126, 91, 202)
HSLhsl(259, 51%, 57%)
HSVhsv(259, 55%, 79%)
CMYKcmyk(37.6%, 55%, 0%, 20.8%)
CIE-LABlab(47.21, 39.13, -52.93)
CIE-LCHlch(47.21, 65.82, 306.47°)
OKLaboklab(56.12% 0.0702 -0.1501)
OKLCHoklch(56.12% 0.166 295.1)
XYZxyz(23.0032, 16.1816, 57.7771)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BCA #A7CA5B
analogous
#5B6FCA #7E5BCA #B65BCA
triadic
#7E5BCA #CA7E5B #5BCA7E
tetradic
#7E5BCA #CA5B6F #A7CA5B #5BCAB6
square
#7E5BCA #CA5B6F #A7CA5B #5BCAB6
split-complementary
#7E5BCA #CAB65B #6FCA5B
monochromatic
#452A81 #5E39AF #7E5BCA #A289D9 #C7B8E8

Accessibility & contrast

On white

4.96
#7E5BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7E5BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BCA
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BCA#FFFFFF#000000##FFFFFF
##7E5BCA1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2871CE
Deuteranopia (green-blind)
#326EC7
Tritanopia (blue-blind)
#6B728A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e5bca;
/* rgb */ color: rgb(126, 91, 202);
/* oklch */ color: oklch(56.1% 0.166 295.1);
Tailwind
colors: {
  custom: {
    50: '#a88adb',
    500: '#7e5bca',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bca;
$custom-light: #a88adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bca",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 258.919,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56124,
    "c": 0.16574,
    "h": 295.1
  },
  "luminance": 0.16182
}

Semantic roles & 50–950 ramp

primary
#7E5BCA
secondary
#C9D7AA
accent
#DB4DAE
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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