#7E5BC2#7E5BC2

#7E5BC2 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.6% C 0.155 H 296.7°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7E5BC2
RGBrgb(126, 91, 194)
HSLhsl(260, 46%, 56%)
HSVhsv(260, 53%, 76%)
CMYKcmyk(35.1%, 53.1%, 0%, 23.9%)
CIE-LABlab(46.73, 36.99, -49.09)
CIE-LCHlch(46.73, 61.47, 307.00°)
OKLaboklab(55.61% 0.0699 -0.1389)
OKLCHoklch(55.61% 0.155 296.7)
XYZxyz(22.0804, 15.8125, 52.9173)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BC2 #9FC25B
analogous
#5B6BC2 #7E5BC2 #B15BC2
triadic
#7E5BC2 #C27E5B #5BC27E
tetradic
#7E5BC2 #C25B6B #9FC25B #5BC2B1
square
#7E5BC2 #C25B6B #9FC25B #5BC2B1
split-complementary
#7E5BC2 #C2B15B #6BC25B
monochromatic
#452C77 #5F3DA3 #7E5BC2 #A188D3 #C4B4E3

Accessibility & contrast

On white

5.04
#7E5BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7E5BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BC2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BC2#FFFFFF#000000##FFFFFF
##7E5BC21.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326FC6
Deuteranopia (green-blind)
#3B6DC0
Tritanopia (blue-blind)
#6F7086
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e5bc2;
/* rgb */ color: rgb(126, 91, 194);
/* oklch */ color: oklch(55.6% 0.155 296.7);
Tailwind
colors: {
  custom: {
    50: '#a78ad5',
    500: '#7e5bc2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bc2;
$custom-light: #a78ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bc2",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 260.388,
    "s": 45.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5561,
    "c": 0.15547,
    "h": 296.7
  },
  "luminance": 0.15813
}

Semantic roles & 50–950 ramp

primary
#7E5BC2
secondary
#C3D2A7
accent
#D552A9
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7E5BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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