#7E54E5#7E54E5

#7E54E5 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 56.9% C 0.209 H 291.7°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7E54E5
RGBrgb(126, 84, 229)
HSLhsl(257, 74%, 61%)
HSVhsv(257, 63%, 90%)
CMYKcmyk(45%, 63.3%, 0%, 10.2%)
CIE-LABlab(47.54, 50.35, -67.80)
CIE-LCHlch(47.54, 84.45, 306.60°)
OKLaboklab(56.94% 0.0772 -0.1939)
OKLCHoklch(56.94% 0.209 291.7)
XYZxyz(25.9134, 16.4325, 75.9200)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54E5 #BBE554
analogous
#5473E5 #7E54E5 #C654E5
triadic
#7E54E5 #E57E54 #54E57E
tetradic
#7E54E5 #E55473 #BBE554 #54E5C6
square
#7E54E5 #E55473 #BBE554 #54E5C6
split-complementary
#7E54E5 #E5C654 #73E554
monochromatic
#4219A5 #5721DB #7E54E5 #A689ED #CEBEF5

Accessibility & contrast

On white

4.90
#7E54E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7E54E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54E5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54E5#FFFFFF#000000##FFFFFF
##7E54E51.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EA
Deuteranopia (green-blind)
#006EE2
Tritanopia (blue-blind)
#5F7695
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e54e5;
/* rgb */ color: rgb(126, 84, 229);
/* oklch */ color: oklch(56.9% 0.209 291.7);
Tailwind
colors: {
  custom: {
    50: '#ab86ee',
    500: '#7e54e5',
    950: '#000000',
  },
}
SCSS
$custom: #7e54e5;
$custom-light: #ab86ee;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54e5",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 229
  },
  "hsl": {
    "h": 257.379,
    "s": 73.604,
    "l": 61.373
  },
  "oklch": {
    "l": 0.56936,
    "c": 0.20868,
    "h": 291.7
  },
  "luminance": 0.16433
}

Semantic roles & 50–950 ramp

primary
#7E54E5
secondary
#D6E6AF
accent
#D6109C
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E54E5

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

Preview Lab → · Contrast checker → · Palette generator →

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