#7E5CF5#7E5CF5

#7E5CF5 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.3% C 0.218 H 288.1°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7E5CF5
RGBrgb(126, 92, 245)
HSLhsl(253, 88%, 66%)
HSVhsv(253, 62%, 96%)
CMYKcmyk(48.6%, 62.4%, 0%, 3.9%)
CIE-LABlab(50.31, 50.42, -72.28)
CIE-LCHlch(50.31, 88.13, 304.90°)
OKLaboklab(59.31% 0.0677 -0.207)
OKLCHoklch(59.31% 0.218 288.1)
XYZxyz(28.9080, 18.6812, 88.4511)
Luminance0.1868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CF5 #D3F55C
analogous
#5C86F5 #7E5CF5 #CA5CF5
triadic
#7E5CF5 #F57E5C #5CF57E
tetradic
#7E5CF5 #F55C86 #D3F55C #5CF5CA
square
#7E5CF5 #F55C86 #D3F55C #5CF5CA
split-complementary
#7E5CF5 #F5CA5C #86F55C
monochromatic
#370CCA #5022F1 #7E5CF5 #AC96F9 #D9CFFC

Accessibility & contrast

On white

4.43
#7E5CF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#7E5CF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5CF5
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CF5#FFFFFF#000000##000000
##7E5CF51.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFA
Deuteranopia (green-blind)
#0074F2
Tritanopia (blue-blind)
#5581A0
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e5cf5;
/* rgb */ color: rgb(126, 92, 245);
/* oklch */ color: oklch(59.3% 0.218 288.1);
Tailwind
colors: {
  custom: {
    50: '#ac8cf9',
    500: '#7e5cf5',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cf5;
$custom-light: #ac8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cf5",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 245
  },
  "hsl": {
    "h": 253.333,
    "s": 88.439,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59312,
    "c": 0.21783,
    "h": 288.1
  },
  "luminance": 0.18682
}

Semantic roles & 50–950 ramp

primary
#7E5CF5
secondary
#E4F0BD
accent
#E500B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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