#7E5BB2#7E5BB2

#7E5BB2 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.6% C 0.135 H 300.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7E5BB2
RGBrgb(126, 91, 178)
HSLhsl(264, 36%, 53%)
HSVhsv(264, 49%, 70%)
CMYKcmyk(29.2%, 48.9%, 0%, 30.2%)
CIE-LABlab(45.81, 32.82, -41.24)
CIE-LCHlch(45.81, 52.71, 308.52°)
OKLaboklab(54.64% 0.0685 -0.1159)
OKLCHoklch(54.64% 0.135 300.6)
XYZxyz(20.3793, 15.1321, 43.9580)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BB2 #8FB25B
analogous
#5B63B2 #7E5BB2 #AA5BB2
triadic
#7E5BB2 #B27E5B #5BB27E
tetradic
#7E5BB2 #B25B63 #8FB25B #5BB2AA
square
#7E5BB2 #B25B63 #8FB25B #5BB2AA
split-complementary
#7E5BB2 #B2AA5B #63B25B
monochromatic
#442F64 #61428D #7E5BB2 #9F85C6 #C0AED9

Accessibility & contrast

On white

5.22
#7E5BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7E5BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BB2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BB2#FFFFFF#000000##FFFFFF
##7E5BB21.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406CB5
Deuteranopia (green-blind)
#486CB0
Tritanopia (blue-blind)
#746B7E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e5bb2;
/* rgb */ color: rgb(126, 91, 178);
/* oklch */ color: oklch(54.6% 0.135 300.6);
Tailwind
colors: {
  custom: {
    50: '#a68ac9',
    500: '#7e5bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bb2;
$custom-light: #a68ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bb2",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 264.138,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54635,
    "c": 0.13463,
    "h": 300.6
  },
  "luminance": 0.15132
}

Semantic roles & 50–950 ramp

primary
#7E5BB2
secondary
#B8C7A2
accent
#CC5C9F
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #7E5BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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