#7E5DF2#7E5DF2

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

Color values

HEX#7E5DF2
RGBrgb(126, 93, 242)
HSLhsl(253, 85%, 66%)
HSVhsv(253, 62%, 95%)
CMYKcmyk(47.9%, 61.6%, 0%, 5.1%)
CIE-LABlab(50.30, 49.03, -70.62)
CIE-LCHlch(50.30, 85.97, 304.77°)
OKLaboklab(59.24% 0.0669 -0.2021)
OKLCHoklch(59.24% 0.213 288.3)
XYZxyz(28.5409, 18.6739, 86.0878)
Luminance0.1867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DF2 #D1F25D
analogous
#5D86F2 #7E5DF2 #C95DF2
triadic
#7E5DF2 #F27E5D #5DF27E
tetradic
#7E5DF2 #F25D86 #D1F25D #5DF2C9
square
#7E5DF2 #F25D86 #D1F25D #5DF2C9
split-complementary
#7E5DF2 #F2C95D #86F25D
monochromatic
#3810C5 #5124ED #7E5DF2 #AB96F7 #D8CEFB

Accessibility & contrast

On white

4.44
#7E5DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E5DF2#FFFFFF#000000##000000
##7E5DF21.004.444.744.74
#FFFFFF4.441.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0074EF
Tritanopia (blue-blind)
#57809F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e5df2;
/* rgb */ color: rgb(126, 93, 242);
/* oklch */ color: oklch(59.2% 0.213 288.3);
Tailwind
colors: {
  custom: {
    50: '#ac8cf7',
    500: '#7e5df2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5df2;
$custom-light: #ac8cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5df2",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 253.289,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.59238,
    "c": 0.21295,
    "h": 288.3
  },
  "luminance": 0.18675
}

Semantic roles & 50–950 ramp

primary
#7E5DF2
secondary
#E3EEBD
accent
#E204B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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