#7E5BD6#7E5BD6

#7E5BD6 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.9% C 0.181 H 292.9°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7E5BD6
RGBrgb(126, 91, 214)
HSLhsl(257, 60%, 60%)
HSVhsv(257, 57%, 84%)
CMYKcmyk(41.1%, 57.5%, 0%, 16.1%)
CIE-LABlab(47.97, 42.38, -58.58)
CIE-LCHlch(47.97, 72.30, 305.88°)
OKLaboklab(56.93% 0.0703 -0.1667)
OKLCHoklch(56.93% 0.181 292.9)
XYZxyz(24.4796, 16.7722, 65.5529)
Luminance0.1677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BD6 #B3D65B
analogous
#5B76D6 #7E5BD6 #BB5BD6
triadic
#7E5BD6 #D67E5B #5BD67E
tetradic
#7E5BD6 #D65B76 #B3D65B #5BD6BB
square
#7E5BD6 #D65B76 #B3D65B #5BD6BB
split-complementary
#7E5BD6 #D6BB5B #76D65B
monochromatic
#442592 #5A31C3 #7E5BD6 #A58CE2 #CBBDEE

Accessibility & contrast

On white

4.82
#7E5BD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7E5BD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BD6
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BD6#FFFFFF#000000##FFFFFF
##7E5BD61.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D73DA
Deuteranopia (green-blind)
#1F70D3
Tritanopia (blue-blind)
#667690
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e5bd6;
/* rgb */ color: rgb(126, 91, 214);
/* oklch */ color: oklch(56.9% 0.181 292.9);
Tailwind
colors: {
  custom: {
    50: '#a98be3',
    500: '#7e5bd6',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bd6;
$custom-light: #a98be3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bd6",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 214
  },
  "hsl": {
    "h": 257.073,
    "s": 60,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56928,
    "c": 0.18097,
    "h": 292.9
  },
  "luminance": 0.16773
}

Semantic roles & 50–950 ramp

primary
#7E5BD6
secondary
#D1DEAF
accent
#E345B6
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7E5BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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