#7E58CA#7E58CA

#7E58CA is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.6% C 0.170 H 295.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7E58CA
RGBrgb(126, 88, 202)
HSLhsl(260, 52%, 57%)
HSVhsv(260, 56%, 79%)
CMYKcmyk(37.6%, 56.4%, 0%, 20.8%)
CIE-LABlab(46.55, 40.84, -53.99)
CIE-LCHlch(46.55, 67.70, 307.10°)
OKLaboklab(55.64% 0.0739 -0.1533)
OKLCHoklch(55.64% 0.17 295.7)
XYZxyz(22.7518, 15.6789, 57.6933)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E58CA #A4CA58
analogous
#586BCA #7E58CA #B758CA
triadic
#7E58CA #CA7E58 #58CA7E
tetradic
#7E58CA #CA586B #A4CA58 #58CAB7
square
#7E58CA #CA586B #A4CA58 #58CAB7
split-complementary
#7E58CA #CAB758 #6BCA58
monochromatic
#45287F #5F37AE #7E58CA #A286D9 #C6B5E7

Accessibility & contrast

On white

5.08
#7E58CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7E58CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E58CA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E58CA#FFFFFF#000000##FFFFFF
##7E58CA1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6FCE
Deuteranopia (green-blind)
#2D6DC7
Tritanopia (blue-blind)
#6C7088
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e58ca;
/* rgb */ color: rgb(126, 88, 202);
/* oklch */ color: oklch(55.6% 0.170 295.7);
Tailwind
colors: {
  custom: {
    50: '#a888db',
    500: '#7e58ca',
    950: '#000000',
  },
}
SCSS
$custom: #7e58ca;
$custom-light: #a888db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e58ca",
  "rgb": {
    "r": 126,
    "g": 88,
    "b": 202
  },
  "hsl": {
    "h": 260,
    "s": 51.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55637,
    "c": 0.17016,
    "h": 295.7
  },
  "luminance": 0.15679
}

Semantic roles & 50–950 ramp

primary
#7E58CA
secondary
#C7D6A8
accent
#DB4DAC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E58CA

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

Preview Lab → · Contrast checker → · Palette generator →

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