#7E5BEC#7E5BEC

#7E5BEC is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.5% C 0.208 H 289.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7E5BEC
RGBrgb(126, 91, 236)
HSLhsl(254, 79%, 64%)
HSVhsv(254, 61%, 93%)
CMYKcmyk(46.6%, 61.4%, 0%, 7.5%)
CIE-LABlab(49.46, 48.46, -68.62)
CIE-LCHlch(49.46, 84.01, 305.23°)
OKLaboklab(58.49% 0.0694 -0.1963)
OKLCHoklch(58.49% 0.208 289.5)
XYZxyz(27.4813, 17.9728, 81.3617)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BEC #C9EC5B
analogous
#5B81EC #7E5BEC #C75BEC
triadic
#7E5BEC #EC7E5B #5BEC7E
tetradic
#7E5BEC #EC5B81 #C9EC5B #5BECC7
square
#7E5BEC #EC5B81 #C9EC5B #5BECC7
split-complementary
#7E5BEC #ECC75B #81EC5B
monochromatic
#3C15B7 #5324E6 #7E5BEC #A992F2 #D4C9F9

Accessibility & contrast

On white

4.57
#7E5BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#7E5BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5BEC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BEC#FFFFFF#000000##000000
##7E5BEC1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#0072E9
Tritanopia (blue-blind)
#5B7D9B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e5bec;
/* rgb */ color: rgb(126, 91, 236);
/* oklch */ color: oklch(58.5% 0.208 289.5);
Tailwind
colors: {
  custom: {
    50: '#ab8bf3',
    500: '#7e5bec',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bec;
$custom-light: #ab8bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bec",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 254.483,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.58492,
    "c": 0.20819,
    "h": 289.5
  },
  "luminance": 0.17974
}

Semantic roles & 50–950 ramp

primary
#7E5BEC
secondary
#DEEBB8
accent
#DC0AA9
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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