#7F54DA#7F54DA

#7F54DA is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.2% C 0.196 H 294.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7F54DA
RGBrgb(127, 84, 218)
HSLhsl(259, 64%, 59%)
HSVhsv(259, 61%, 85%)
CMYKcmyk(41.7%, 61.5%, 0%, 14.5%)
CIE-LABlab(46.86, 47.58, -62.65)
CIE-LCHlch(46.86, 78.67, 307.21°)
OKLaboklab(56.22% 0.0794 -0.1787)
OKLCHoklch(56.22% 0.196 294)
XYZxyz(24.5742, 15.9140, 68.0930)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F54DA #AFDA54
analogous
#546CDA #7F54DA #C254DA
triadic
#7F54DA #DA7F54 #54DA7F
tetradic
#7F54DA #DA546C #AFDA54 #54DAC2
square
#7F54DA #DA546C #AFDA54 #54DAC2
split-complementary
#7F54DA #DAC254 #6CDA54
monochromatic
#452094 #5D2BC6 #7F54DA #A586E5 #CAB9F0

Accessibility & contrast

On white

5.02
#7F54DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7F54DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F54DA
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F54DA#FFFFFF#000000##FFFFFF
##7F54DA1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DE
Deuteranopia (green-blind)
#006DD7
Tritanopia (blue-blind)
#67728F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f54da;
/* rgb */ color: rgb(127, 84, 218);
/* oklch */ color: oklch(56.2% 0.196 294.0);
Tailwind
colors: {
  custom: {
    50: '#aa86e6',
    500: '#7f54da',
    950: '#000000',
  },
}
SCSS
$custom: #7f54da;
$custom-light: #aa86e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f54da",
  "rgb": {
    "r": 127,
    "g": 84,
    "b": 218
  },
  "hsl": {
    "h": 259.254,
    "s": 64.423,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56224,
    "c": 0.19554,
    "h": 294
  },
  "luminance": 0.15915
}

Semantic roles & 50–950 ramp

primary
#7F54DA
secondary
#CEDFAB
accent
#E740B2
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F54DA

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

Preview Lab → · Contrast checker → · Palette generator →

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