#7E58CD#7E58CD

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

Color values

HEX#7E58CD
RGBrgb(126, 88, 205)
HSLhsl(259, 54%, 57%)
HSVhsv(259, 57%, 80%)
CMYKcmyk(38.5%, 57.1%, 0%, 19.6%)
CIE-LABlab(46.74, 41.64, -55.41)
CIE-LCHlch(46.74, 69.32, 306.92°)
OKLaboklab(55.84% 0.0739 -0.1574)
OKLCHoklch(55.84% 0.174 295.2)
XYZxyz(23.1105, 15.8224, 59.5822)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E58CD #A7CD58
analogous
#586DCD #7E58CD #B858CD
triadic
#7E58CD #CD7E58 #58CD7E
tetradic
#7E58CD #CD586D #A7CD58 #58CDB8
square
#7E58CD #CD586D #A7CD58 #58CDB8
split-complementary
#7E58CD #CDB858 #6DCD58
monochromatic
#452783 #5E35B2 #7E58CD #A287DB #C7B6E9

Accessibility & contrast

On white

5.04
#7E58CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7E58CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E58CD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E58CD#FFFFFF#000000##FFFFFF
##7E58CD1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1870D1
Deuteranopia (green-blind)
#286DCA
Tritanopia (blue-blind)
#6A718A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e58cd;
/* rgb */ color: rgb(126, 88, 205);
/* oklch */ color: oklch(55.8% 0.174 295.2);
Tailwind
colors: {
  custom: {
    50: '#a888dd',
    500: '#7e58cd',
    950: '#000000',
  },
}
SCSS
$custom: #7e58cd;
$custom-light: #a888dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e58cd",
  "rgb": {
    "r": 126,
    "g": 88,
    "b": 205
  },
  "hsl": {
    "h": 259.487,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55837,
    "c": 0.17393,
    "h": 295.2
  },
  "luminance": 0.15823
}

Semantic roles & 50–950 ramp

primary
#7E58CD
secondary
#C9D8A9
accent
#DD4BAE
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E58CD

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

Preview Lab → · Contrast checker → · Palette generator →

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