#7E5FE2#7E5FE2

#7E5FE2 is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.4% C 0.191 H 290.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7E5FE2
RGBrgb(126, 95, 226)
HSLhsl(254, 69%, 63%)
HSVhsv(254, 58%, 89%)
CMYKcmyk(44.2%, 58%, 0%, 11.4%)
CIE-LABlab(49.63, 43.43, -62.72)
CIE-LCHlch(49.63, 76.29, 304.70°)
OKLaboklab(58.4% 0.0656 -0.1789)
OKLCHoklch(58.4% 0.191 290.1)
XYZxyz(26.4200, 18.1101, 74.0403)
Luminance0.1811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FE2 #C3E25F
analogous
#5F82E2 #7E5FE2 #BF5FE2
triadic
#7E5FE2 #E27E5F #5FE27E
tetradic
#7E5FE2 #E25F82 #C3E25F #5FE2BF
square
#7E5FE2 #E25F82 #C3E25F #5FE2BF
split-complementary
#7E5FE2 #E2BF5F #82E25F
monochromatic
#3F1EA8 #542BD9 #7E5FE2 #A893EB #D2C7F5

Accessibility & contrast

On white

4.54
#7E5FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#7E5FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5FE2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FE2#FFFFFF#000000##000000
##7E5FE21.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#0673DF
Tritanopia (blue-blind)
#607C97
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e5fe2;
/* rgb */ color: rgb(126, 95, 226);
/* oklch */ color: oklch(58.4% 0.191 290.1);
Tailwind
colors: {
  custom: {
    50: '#aa8dec',
    500: '#7e5fe2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fe2;
$custom-light: #aa8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fe2",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 226
  },
  "hsl": {
    "h": 254.198,
    "s": 69.312,
    "l": 62.941
  },
  "oklch": {
    "l": 0.58397,
    "c": 0.19054,
    "h": 290.1
  },
  "luminance": 0.18111
}

Semantic roles & 50–950 ramp

primary
#7E5FE2
secondary
#DBE6B7
accent
#D114A5
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7E5FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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