#7E5FE7#7E5FE7

#7E5FE7 is a mid, vivid violet. Relative luminance 0.184; OKLCH L 58.7% C 0.197 H 289.4°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7E5FE7
RGBrgb(126, 95, 231)
HSLhsl(254, 74%, 64%)
HSVhsv(254, 59%, 91%)
CMYKcmyk(45.5%, 58.9%, 0%, 9.4%)
CIE-LABlab(49.96, 44.83, -65.00)
CIE-LCHlch(49.96, 78.96, 304.59°)
OKLaboklab(58.75% 0.0654 -0.1856)
OKLCHoklch(58.75% 0.197 289.4)
XYZxyz(27.1161, 18.3885, 77.7064)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FE7 #C8E75F
analogous
#5F84E7 #7E5FE7 #C25FE7
triadic
#7E5FE7 #E77E5F #5FE77E
tetradic
#7E5FE7 #E75F84 #C8E75F #5FE7C2
square
#7E5FE7 #E75F84 #C8E75F #5FE7C2
split-complementary
#7E5FE7 #E7C25F #84E75F
monochromatic
#3D1BB1 #532ADF #7E5FE7 #A994EF #D4C9F7

Accessibility & contrast

On white

4.49
#7E5FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#7E5FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5FE7
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FE7#FFFFFF#000000##000000
##7E5FE71.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEB
Deuteranopia (green-blind)
#0074E4
Tritanopia (blue-blind)
#5D7E9A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e5fe7;
/* rgb */ color: rgb(126, 95, 231);
/* oklch */ color: oklch(58.7% 0.197 289.4);
Tailwind
colors: {
  custom: {
    50: '#aa8def',
    500: '#7e5fe7',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fe7;
$custom-light: #aa8def;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fe7",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 231
  },
  "hsl": {
    "h": 253.676,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58749,
    "c": 0.1968,
    "h": 289.4
  },
  "luminance": 0.1839
}

Semantic roles & 50–950 ramp

primary
#7E5FE7
secondary
#DEE9B9
accent
#D60FA9
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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