#7E59BB#7E59BB

#7E59BB is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.8% C 0.150 H 298.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7E59BB
RGBrgb(126, 89, 187)
HSLhsl(263, 42%, 54%)
HSVhsv(263, 52%, 73%)
CMYKcmyk(32.6%, 52.4%, 0%, 26.7%)
CIE-LABlab(45.86, 36.31, -46.41)
CIE-LCHlch(45.86, 58.93, 308.04°)
OKLaboklab(54.84% 0.0721 -0.131)
OKLCHoklch(54.84% 0.15 298.8)
XYZxyz(21.1440, 15.1680, 48.8178)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E59BB #96BB59
analogous
#5965BB #7E59BB #AF59BB
triadic
#7E59BB #BB7E59 #59BB7E
tetradic
#7E59BB #BB5965 #96BB59 #59BBAF
square
#7E59BB #BB5965 #96BB59 #59BBAF
split-complementary
#7E59BB #BBAF59 #65BB59
monochromatic
#452D6D #603E98 #7E59BB #A084CD #C1B0DF

Accessibility & contrast

On white

5.21
#7E59BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E59BB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E59BB#FFFFFF#000000##FFFFFF
##7E59BB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356DBE
Deuteranopia (green-blind)
#3F6CB9
Tritanopia (blue-blind)
#716C81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e59bb;
/* rgb */ color: rgb(126, 89, 187);
/* oklch */ color: oklch(54.8% 0.150 298.8);
Tailwind
colors: {
  custom: {
    50: '#a689d0',
    500: '#7e59bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e59bb;
$custom-light: #a689d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e59bb",
  "rgb": {
    "r": 126,
    "g": 89,
    "b": 187
  },
  "hsl": {
    "h": 262.653,
    "s": 41.88,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54836,
    "c": 0.14952,
    "h": 298.8
  },
  "luminance": 0.15168
}

Semantic roles & 50–950 ramp

primary
#7E59BB
secondary
#BDCDA3
accent
#D256A3
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7E59BB

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

Preview Lab → · Contrast checker → · Palette generator →

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