#7E58CC#7E58CC

#7E58CC is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.8% C 0.173 H 295.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7E58CC
RGBrgb(126, 88, 204)
HSLhsl(260, 53%, 57%)
HSVhsv(260, 57%, 80%)
CMYKcmyk(38.2%, 56.9%, 0%, 20%)
CIE-LABlab(46.68, 41.37, -54.94)
CIE-LCHlch(46.68, 68.78, 306.98°)
OKLaboklab(55.77% 0.0739 -0.156)
OKLCHoklch(55.77% 0.173 295.3)
XYZxyz(22.9902, 15.7742, 58.9485)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E58CC #A6CC58
analogous
#586CCC #7E58CC #B858CC
triadic
#7E58CC #CC7E58 #58CC7E
tetradic
#7E58CC #CC586C #A6CC58 #58CCB8
square
#7E58CC #CC586C #A6CC58 #58CCB8
split-complementary
#7E58CC #CCB858 #6CCC58
monochromatic
#452882 #5E36B1 #7E58CC #A287DA #C6B6E9

Accessibility & contrast

On white

5.05
#7E58CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7E58CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E58CC
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E58CC#FFFFFF#000000##FFFFFF
##7E58CC1.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B70D0
Deuteranopia (green-blind)
#2A6DC9
Tritanopia (blue-blind)
#6B7189
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e58cc;
/* rgb */ color: rgb(126, 88, 204);
/* oklch */ color: oklch(55.8% 0.173 295.3);
Tailwind
colors: {
  custom: {
    50: '#a888dc',
    500: '#7e58cc',
    950: '#000000',
  },
}
SCSS
$custom: #7e58cc;
$custom-light: #a888dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e58cc",
  "rgb": {
    "r": 126,
    "g": 88,
    "b": 204
  },
  "hsl": {
    "h": 259.655,
    "s": 53.211,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5577,
    "c": 0.17267,
    "h": 295.3
  },
  "luminance": 0.15775
}

Semantic roles & 50–950 ramp

primary
#7E58CC
secondary
#C8D7A8
accent
#DD4BAD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E58CC

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

Preview Lab → · Contrast checker → · Palette generator →

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