#7F54DC#7F54DC

#7F54DC is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.4% C 0.198 H 293.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7F54DC
RGBrgb(127, 84, 220)
HSLhsl(259, 66%, 60%)
HSVhsv(259, 62%, 86%)
CMYKcmyk(42.3%, 61.8%, 0%, 13.7%)
CIE-LABlab(47.00, 48.11, -63.56)
CIE-LCHlch(47.00, 79.72, 307.12°)
OKLaboklab(56.37% 0.0793 -0.1814)
OKLCHoklch(56.37% 0.198 293.6)
XYZxyz(24.8375, 16.0193, 69.4797)
Luminance0.1602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F54DC #B1DC54
analogous
#546DDC #7F54DC #C354DC
triadic
#7F54DC #DC7F54 #54DC7F
tetradic
#7F54DC #DC546D #B1DC54 #54DCC3
square
#7F54DC #DC546D #B1DC54 #54DCC3
split-complementary
#7F54DC #DCC354 #6DDC54
monochromatic
#451F97 #5C29CA #7F54DC #A587E6 #CBBAF1

Accessibility & contrast

On white

5.00
#7F54DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7F54DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F54DC
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F54DC#FFFFFF#000000##FFFFFF
##7F54DC1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#006DD9
Tritanopia (blue-blind)
#667390
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f54dc;
/* rgb */ color: rgb(127, 84, 220);
/* oklch */ color: oklch(56.4% 0.198 293.6);
Tailwind
colors: {
  custom: {
    50: '#aa86e8',
    500: '#7f54dc',
    950: '#000000',
  },
}
SCSS
$custom: #7f54dc;
$custom-light: #aa86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f54dc",
  "rgb": {
    "r": 127,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 258.971,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56368,
    "c": 0.19795,
    "h": 293.6
  },
  "luminance": 0.1602
}

Semantic roles & 50–950 ramp

primary
#7F54DC
secondary
#D0E0AC
accent
#E93FB3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F54DC

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

Preview Lab → · Contrast checker → · Palette generator →

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