#7E54DF#7E54DF

#7E54DF is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.5% C 0.202 H 292.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E54DF
RGBrgb(126, 84, 223)
HSLhsl(258, 68%, 60%)
HSVhsv(258, 62%, 87%)
CMYKcmyk(43.5%, 62.3%, 0%, 12.5%)
CIE-LABlab(47.11, 48.72, -65.10)
CIE-LCHlch(47.11, 81.31, 306.81°)
OKLaboklab(56.49% 0.0778 -0.1859)
OKLCHoklch(56.49% 0.202 292.7)
XYZxyz(25.0901, 16.1032, 71.5840)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54DF #B5DF54
analogous
#5470DF #7E54DF #C354DF
triadic
#7E54DF #DF7E54 #54DF7E
tetradic
#7E54DF #DF5470 #B5DF54 #54DFC3
square
#7E54DF #DF5470 #B5DF54 #54DFC3
split-complementary
#7E54DF #DFC354 #70DF54
monochromatic
#431D9C #5A27CF #7E54DF #A588E9 #CCBBF2

Accessibility & contrast

On white

4.98
#7E54DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7E54DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54DF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54DF#FFFFFF#000000##FFFFFF
##7E54DF1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#006DDC
Tritanopia (blue-blind)
#627492
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e54df;
/* rgb */ color: rgb(126, 84, 223);
/* oklch */ color: oklch(56.5% 0.202 292.7);
Tailwind
colors: {
  custom: {
    50: '#aa86ea',
    500: '#7e54df',
    950: '#000000',
  },
}
SCSS
$custom: #7e54df;
$custom-light: #aa86ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54df",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 223
  },
  "hsl": {
    "h": 258.129,
    "s": 68.473,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56491,
    "c": 0.20151,
    "h": 292.7
  },
  "luminance": 0.16104
}

Semantic roles & 50–950 ramp

primary
#7E54DF
secondary
#D2E2AD
accent
#D01598
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E54DF

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

Preview Lab → · Contrast checker → · Palette generator →

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