#7E54D3#7E54D3

#7E54D3 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.6% C 0.187 H 294.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7E54D3
RGBrgb(126, 84, 211)
HSLhsl(260, 59%, 58%)
HSVhsv(260, 60%, 83%)
CMYKcmyk(40.3%, 60.2%, 0%, 17.3%)
CIE-LABlab(46.28, 45.49, -59.59)
CIE-LCHlch(46.28, 74.97, 307.36°)
OKLaboklab(55.63% 0.0785 -0.1697)
OKLCHoklch(55.63% 0.187 294.8)
XYZxyz(23.5293, 15.4789, 63.3634)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54D3 #A9D354
analogous
#5469D3 #7E54D3 #BE54D3
triadic
#7E54D3 #D37E54 #54D37E
tetradic
#7E54D3 #D35469 #A9D354 #54D3BE
square
#7E54D3 #D35469 #A9D354 #54D3BE
split-complementary
#7E54D3 #D3BE54 #69D354
monochromatic
#452389 #5E30BA #7E54D3 #A385E0 #C7B5EC

Accessibility & contrast

On white

5.13
#7E54D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7E54D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54D3
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54D3#FFFFFF#000000##FFFFFF
##7E54D31.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD7
Deuteranopia (green-blind)
#0E6CD0
Tritanopia (blue-blind)
#68708C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e54d3;
/* rgb */ color: rgb(126, 84, 211);
/* oklch */ color: oklch(55.6% 0.187 294.8);
Tailwind
colors: {
  custom: {
    50: '#a986e1',
    500: '#7e54d3',
    950: '#000000',
  },
}
SCSS
$custom: #7e54d3;
$custom-light: #a986e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54d3",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 211
  },
  "hsl": {
    "h": 259.843,
    "s": 59.07,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55628,
    "c": 0.18699,
    "h": 294.8
  },
  "luminance": 0.15479
}

Semantic roles & 50–950 ramp

primary
#7E54D3
secondary
#CADBA8
accent
#E246AE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E54D3

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

Preview Lab → · Contrast checker → · Palette generator →

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