#7E54E6#7E54E6

#7E54E6 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.0% C 0.210 H 291.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7E54E6
RGBrgb(126, 84, 230)
HSLhsl(257, 74%, 62%)
HSVhsv(257, 63%, 90%)
CMYKcmyk(45.2%, 63.5%, 0%, 9.8%)
CIE-LABlab(47.61, 50.62, -68.25)
CIE-LCHlch(47.61, 84.97, 306.56°)
OKLaboklab(57.01% 0.0771 -0.1952)
OKLCHoklch(57.01% 0.21 291.6)
XYZxyz(26.0535, 16.4886, 76.6574)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54E6 #BCE654
analogous
#5473E6 #7E54E6 #C754E6
triadic
#7E54E6 #E67E54 #54E67E
tetradic
#7E54E6 #E65473 #BCE654 #54E6C7
square
#7E54E6 #E65473 #BCE654 #54E6C7
split-complementary
#7E54E6 #E6C754 #73E654
monochromatic
#4118A7 #5620DD #7E54E6 #A689EE #CFBFF6

Accessibility & contrast

On white

4.89
#7E54E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7E54E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54E6
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54E6#FFFFFF#000000##FFFFFF
##7E54E61.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EB
Deuteranopia (green-blind)
#006EE3
Tritanopia (blue-blind)
#5F7795
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e54e6;
/* rgb */ color: rgb(126, 84, 230);
/* oklch */ color: oklch(57.0% 0.210 291.6);
Tailwind
colors: {
  custom: {
    50: '#ab86ef',
    500: '#7e54e6',
    950: '#000000',
  },
}
SCSS
$custom: #7e54e6;
$custom-light: #ab86ef;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54e6",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 230
  },
  "hsl": {
    "h": 257.26,
    "s": 74.49,
    "l": 61.569
  },
  "oklch": {
    "l": 0.57011,
    "c": 0.20987,
    "h": 291.6
  },
  "luminance": 0.16489
}

Semantic roles & 50–950 ramp

primary
#7E54E6
secondary
#D6E6B0
accent
#D70F9D
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E54E6

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

Preview Lab → · Contrast checker → · Palette generator →

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