#7E58D2#7E58D2

#7E58D2 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.2% C 0.180 H 294.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E58D2
RGBrgb(126, 88, 210)
HSLhsl(259, 58%, 58%)
HSVhsv(259, 58%, 82%)
CMYKcmyk(40%, 58.1%, 0%, 17.6%)
CIE-LABlab(47.06, 42.99, -57.76)
CIE-LCHlch(47.06, 72.00, 306.66°)
OKLaboklab(56.18% 0.0739 -0.1643)
OKLCHoklch(56.18% 0.18 294.2)
XYZxyz(23.7237, 16.0677, 62.8117)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E58D2 #ACD258
analogous
#586FD2 #7E58D2 #BB58D2
triadic
#7E58D2 #D27E58 #58D27E
tetradic
#7E58D2 #D2586F #ACD258 #58D2BB
square
#7E58D2 #D2586F #ACD258 #58D2BB
split-complementary
#7E58D2 #D2BB58 #6FD258
monochromatic
#45258A #5D32BB #7E58D2 #A388DF #C8B8EC

Accessibility & contrast

On white

4.98
#7E58D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7E58D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E58D2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E58D2#FFFFFF#000000##FFFFFF
##7E58D21.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0871D6
Deuteranopia (green-blind)
#1F6ECF
Tritanopia (blue-blind)
#68728D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e58d2;
/* rgb */ color: rgb(126, 88, 210);
/* oklch */ color: oklch(56.2% 0.180 294.2);
Tailwind
colors: {
  custom: {
    50: '#a888e0',
    500: '#7e58d2',
    950: '#000000',
  },
}
SCSS
$custom: #7e58d2;
$custom-light: #a888e0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e58d2",
  "rgb": {
    "r": 126,
    "g": 88,
    "b": 210
  },
  "hsl": {
    "h": 258.689,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56177,
    "c": 0.18018,
    "h": 294.2
  },
  "luminance": 0.16068
}

Semantic roles & 50–950 ramp

primary
#7E58D2
secondary
#CCDBAB
accent
#E147B1
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E58D2

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

Preview Lab → · Contrast checker → · Palette generator →

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