#7E54E7#7E54E7

#7E54E7 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.1% C 0.211 H 291.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7E54E7
RGBrgb(126, 84, 231)
HSLhsl(257, 75%, 62%)
HSVhsv(257, 64%, 91%)
CMYKcmyk(45.5%, 63.6%, 0%, 9.4%)
CIE-LABlab(47.68, 50.89, -68.70)
CIE-LCHlch(47.68, 85.50, 306.53°)
OKLaboklab(57.09% 0.077 -0.1965)
OKLCHoklch(57.09% 0.211 291.4)
XYZxyz(26.1943, 16.5449, 77.3991)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54E7 #BDE754
analogous
#5474E7 #7E54E7 #C854E7
triadic
#7E54E7 #E77E54 #54E77E
tetradic
#7E54E7 #E75474 #BDE754 #54E7C8
square
#7E54E7 #E75474 #BDE754 #54E7C8
split-complementary
#7E54E7 #E7C854 #74E754
monochromatic
#4118A9 #561FDF #7E54E7 #A68AEF #CFBFF6

Accessibility & contrast

On white

4.87
#7E54E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7E54E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54E7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54E7#FFFFFF#000000##FFFFFF
##7E54E71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EC
Deuteranopia (green-blind)
#006EE4
Tritanopia (blue-blind)
#5E7796
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e54e7;
/* rgb */ color: rgb(126, 84, 231);
/* oklch */ color: oklch(57.1% 0.211 291.4);
Tailwind
colors: {
  custom: {
    50: '#ab86f0',
    500: '#7e54e7',
    950: '#000000',
  },
}
SCSS
$custom: #7e54e7;
$custom-light: #ab86f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54e7",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 231
  },
  "hsl": {
    "h": 257.143,
    "s": 75.385,
    "l": 61.765
  },
  "oklch": {
    "l": 0.57086,
    "c": 0.21106,
    "h": 291.4
  },
  "luminance": 0.16546
}

Semantic roles & 50–950 ramp

primary
#7E54E7
secondary
#D7E7B0
accent
#D80E9E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E54E7

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

Preview Lab → · Contrast checker → · Palette generator →

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