#7E58B2#7E58B2

#7E58B2 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.1% C 0.140 H 301.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7E58B2
RGBrgb(126, 88, 178)
HSLhsl(265, 37%, 52%)
HSVhsv(265, 51%, 70%)
CMYKcmyk(29.2%, 50.6%, 0%, 30.2%)
CIE-LABlab(45.12, 34.57, -42.34)
CIE-LCHlch(45.12, 54.66, 309.23°)
OKLaboklab(54.12% 0.0727 -0.1191)
OKLCHoklch(54.12% 0.14 301.4)
XYZxyz(20.1280, 14.6294, 43.8742)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E58B2 #8CB258
analogous
#585FB2 #7E58B2 #AB58B2
triadic
#7E58B2 #B27E58 #58B27E
tetradic
#7E58B2 #B2585F #8CB258 #58B2AB
square
#7E58B2 #B2585F #8CB258 #58B2AB
split-complementary
#7E58B2 #B2AB58 #5FB258
monochromatic
#442D62 #61418C #7E58B2 #9E82C5 #BFACD9

Accessibility & contrast

On white

5.35
#7E58B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7E58B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E58B2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E58B2#FFFFFF#000000##FFFFFF
##7E58B21.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6AB5
Deuteranopia (green-blind)
#456AB0
Tritanopia (blue-blind)
#74697D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e58b2;
/* rgb */ color: rgb(126, 88, 178);
/* oklch */ color: oklch(54.1% 0.140 301.4);
Tailwind
colors: {
  custom: {
    50: '#a688c9',
    500: '#7e58b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e58b2;
$custom-light: #a688c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e58b2",
  "rgb": {
    "r": 126,
    "g": 88,
    "b": 178
  },
  "hsl": {
    "h": 265.333,
    "s": 36.885,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54119,
    "c": 0.13952,
    "h": 301.4
  },
  "luminance": 0.14629
}

Semantic roles & 50–950 ramp

primary
#7E58B2
secondary
#B6C79F
accent
#CD5B9D
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #7E58B2

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

Preview Lab → · Contrast checker → · Palette generator →

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