#7E58C8#7E58C8

#7E58C8 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.5% C 0.168 H 296.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7E58C8
RGBrgb(126, 88, 200)
HSLhsl(260, 50%, 56%)
HSVhsv(260, 56%, 78%)
CMYKcmyk(37%, 56%, 0%, 21.6%)
CIE-LABlab(46.42, 40.31, -53.04)
CIE-LCHlch(46.42, 66.62, 307.23°)
OKLaboklab(55.5% 0.0739 -0.1505)
OKLCHoklch(55.5% 0.168 296.2)
XYZxyz(22.5166, 15.5848, 56.4542)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E58C8 #A2C858
analogous
#586AC8 #7E58C8 #B658C8
triadic
#7E58C8 #C87E58 #58C87E
tetradic
#7E58C8 #C8586A #A2C858 #58C8B6
square
#7E58C8 #C8586A #A2C858 #58C8B6
split-complementary
#7E58C8 #C8B658 #6AC858
monochromatic
#45297D #5F38AB #7E58C8 #A286D7 #C5B4E6

Accessibility & contrast

On white

5.10
#7E58C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#7E58C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E58C8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E58C8#FFFFFF#000000##FFFFFF
##7E58C81.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#226FCC
Deuteranopia (green-blind)
#2F6DC5
Tritanopia (blue-blind)
#6C6F87
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e58c8;
/* rgb */ color: rgb(126, 88, 200);
/* oklch */ color: oklch(55.5% 0.168 296.2);
Tailwind
colors: {
  custom: {
    50: '#a888d9',
    500: '#7e58c8',
    950: '#000000',
  },
}
SCSS
$custom: #7e58c8;
$custom-light: #a888d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e58c8",
  "rgb": {
    "r": 126,
    "g": 88,
    "b": 200
  },
  "hsl": {
    "h": 260.357,
    "s": 50.45,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55504,
    "c": 0.16763,
    "h": 296.2
  },
  "luminance": 0.15585
}

Semantic roles & 50–950 ramp

primary
#7E58C8
secondary
#C5D5A7
accent
#DA4EAA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E58C8

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

Preview Lab → · Contrast checker → · Palette generator →

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