#7E5FEA#7E5FEA

#7E5FEA is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.0% C 0.201 H 289.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7E5FEA
RGBrgb(126, 95, 234)
HSLhsl(253, 77%, 65%)
HSVhsv(253, 59%, 92%)
CMYKcmyk(46.2%, 59.4%, 0%, 8.2%)
CIE-LABlab(50.17, 45.67, -66.36)
CIE-LCHlch(50.17, 80.55, 304.54°)
OKLaboklab(58.96% 0.0653 -0.1896)
OKLCHoklch(58.96% 0.201 289)
XYZxyz(27.5434, 18.5595, 79.9570)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FEA #CBEA5F
analogous
#5F86EA #7E5FEA #C35FEA
triadic
#7E5FEA #EA7E5F #5FEA7E
tetradic
#7E5FEA #EA5F86 #CBEA5F #5FEAC3
square
#7E5FEA #EA5F86 #CBEA5F #5FEAC3
split-complementary
#7E5FEA #EAC35F #86EA5F
monochromatic
#3B18B7 #5229E3 #7E5FEA #AA95F1 #D5CBF8

Accessibility & contrast

On white

4.46
#7E5FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#7E5FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5FEA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FEA#FFFFFF#000000##000000
##7E5FEA1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEF
Deuteranopia (green-blind)
#0074E7
Tritanopia (blue-blind)
#5C7F9C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e5fea;
/* rgb */ color: rgb(126, 95, 234);
/* oklch */ color: oklch(59.0% 0.201 289.0);
Tailwind
colors: {
  custom: {
    50: '#ab8ef2',
    500: '#7e5fea',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fea;
$custom-light: #ab8ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fea",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 234
  },
  "hsl": {
    "h": 253.381,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58963,
    "c": 0.20054,
    "h": 289
  },
  "luminance": 0.18561
}

Semantic roles & 50–950 ramp

primary
#7E5FEA
secondary
#E0EABA
accent
#D90CAB
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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