#7E5BEA#7E5BEA

#7E5BEA is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.3% C 0.206 H 289.8°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7E5BEA
RGBrgb(126, 91, 234)
HSLhsl(255, 77%, 64%)
HSVhsv(255, 61%, 92%)
CMYKcmyk(46.2%, 61.1%, 0%, 8.2%)
CIE-LABlab(49.32, 47.90, -67.73)
CIE-LCHlch(49.32, 82.95, 305.27°)
OKLaboklab(58.35% 0.0696 -0.1936)
OKLCHoklch(58.35% 0.206 289.8)
XYZxyz(27.1923, 17.8573, 79.8400)
Luminance0.1786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BEA #C7EA5B
analogous
#5B7FEA #7E5BEA #C55BEA
triadic
#7E5BEA #EA7E5B #5BEA7E
tetradic
#7E5BEA #EA5B7F #C7EA5B #5BEAC5
square
#7E5BEA #EA5B7F #C7EA5B #5BEAC5
split-complementary
#7E5BEA #EAC55B #7FEA5B
monochromatic
#3D17B4 #5325E3 #7E5BEA #A991F1 #D3C8F8

Accessibility & contrast

On white

4.59
#7E5BEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7E5BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BEA
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BEA#FFFFFF#000000##FFFFFF
##7E5BEA1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078EF
Deuteranopia (green-blind)
#0072E7
Tritanopia (blue-blind)
#5C7C9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e5bea;
/* rgb */ color: rgb(126, 91, 234);
/* oklch */ color: oklch(58.3% 0.206 289.8);
Tailwind
colors: {
  custom: {
    50: '#ab8bf2',
    500: '#7e5bea',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bea;
$custom-light: #ab8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bea",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 254.685,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58345,
    "c": 0.20575,
    "h": 289.8
  },
  "luminance": 0.17858
}

Semantic roles & 50–950 ramp

primary
#7E5BEA
secondary
#DDEAB7
accent
#DA0CA7
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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