#7D54DC#7D54DC

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

Color values

HEX#7D54DC
RGBrgb(125, 84, 220)
HSLhsl(258, 66%, 60%)
HSVhsv(258, 62%, 86%)
CMYKcmyk(43.2%, 61.8%, 0%, 13.7%)
CIE-LABlab(46.80, 47.70, -63.90)
CIE-LCHlch(46.80, 79.74, 306.74°)
OKLaboklab(56.18% 0.0767 -0.1824)
OKLCHoklch(56.18% 0.198 292.8)
XYZxyz(24.5425, 15.8672, 69.4658)
Luminance0.1587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D54DC #B3DC54
analogous
#546FDC #7D54DC #C154DC
triadic
#7D54DC #DC7D54 #54DC7D
tetradic
#7D54DC #DC546F #B3DC54 #54DCC1
square
#7D54DC #DC546F #B3DC54 #54DCC1
split-complementary
#7D54DC #DCC154 #6FDC54
monochromatic
#431F97 #5A29CA #7D54DC #A487E6 #CABAF1

Accessibility & contrast

On white

5.03
#7D54DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7D54DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D54DC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D54DC#FFFFFF#000000##FFFFFF
##7D54DC1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d54dc;
/* rgb */ color: rgb(125, 84, 220);
/* oklch */ color: oklch(56.2% 0.198 292.8);
Tailwind
colors: {
  custom: {
    50: '#a986e8',
    500: '#7d54dc',
    950: '#000000',
  },
}
SCSS
$custom: #7d54dc;
$custom-light: #a986e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d54dc",
  "rgb": {
    "r": 125,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 258.088,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56176,
    "c": 0.19786,
    "h": 292.8
  },
  "luminance": 0.15868
}

Semantic roles & 50–950 ramp

primary
#7D54DC
secondary
#D0E0AC
accent
#E93FB6
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7D54DC

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

Preview Lab → · Contrast checker → · Palette generator →

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