#7E54A8#7E54A8

#7E54A8 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 52.9% C 0.133 H 305.4°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#7E54A8
RGBrgb(126, 84, 168)
HSLhsl(270, 33%, 49%)
HSVhsv(270, 50%, 66%)
CMYKcmyk(25%, 50%, 0%, 34.1%)
CIE-LABlab(43.66, 34.38, -38.78)
CIE-LCHlch(43.66, 51.83, 311.57°)
OKLaboklab(52.85% 0.0772 -0.1087)
OKLCHoklch(52.85% 0.133 305.4)
XYZxyz(18.8409, 13.6035, 38.6714)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54A8 #7EA854
analogous
#5454A8 #7E54A8 #A854A8
triadic
#7E54A8 #A87E54 #54A87E
tetradic
#7E54A8 #A85454 #7EA854 #54A8A8
square
#7E54A8 #A85454 #7EA854 #54A8A8
split-complementary
#7E54A8 #A8A854 #54A854
monochromatic
#412B56 #5F407F #7E54A8 #9D7CBD #BBA5D2

Accessibility & contrast

On white

5.64
#7E54A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#7E54A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54A8
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54A8#FFFFFF#000000##FFFFFF
##7E54A81.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C66AB
Deuteranopia (green-blind)
#4767A6
Tritanopia (blue-blind)
#776376
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e54a8;
/* rgb */ color: rgb(126, 84, 168);
/* oklch */ color: oklch(52.9% 0.133 305.4);
Tailwind
colors: {
  custom: {
    50: '#a585c2',
    500: '#7e54a8',
    950: '#000000',
  },
}
SCSS
$custom: #7e54a8;
$custom-light: #a585c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54a8",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 168
  },
  "hsl": {
    "h": 270,
    "s": 33.333,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52851,
    "c": 0.13333,
    "h": 305.4
  },
  "luminance": 0.13603
}

Semantic roles & 50–950 ramp

primary
#7E54A8
secondary
#ACBF99
accent
#C95E94
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0B12
muted
#7F7C81

Preview Lab

Preview with #7E54A8

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

Preview Lab → · Contrast checker → · Palette generator →

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