#7D54F8#7D54F8

#7D54F8 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.3% C 0.231 H 288.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7D54F8
RGBrgb(125, 84, 248)
HSLhsl(255, 92%, 65%)
HSVhsv(255, 66%, 97%)
CMYKcmyk(49.6%, 66.1%, 0%, 2.7%)
CIE-LABlab(48.86, 55.37, -76.33)
CIE-LCHlch(48.86, 94.30, 305.96°)
OKLaboklab(58.31% 0.0737 -0.219)
OKLCHoklch(58.31% 0.231 288.6)
XYZxyz(28.5661, 17.4767, 90.6569)
Luminance0.1748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D54F8 #CFF854
analogous
#547DF8 #7D54F8 #CF54F8
triadic
#7D54F8 #F87D54 #54F87D
tetradic
#7D54F8 #F8547D #CFF854 #54F8CF
square
#7D54F8 #F8547D #CFF854 #54F8CF
split-complementary
#7D54F8 #F8CF54 #7DF854
monochromatic
#3908C9 #5019F6 #7D54F8 #AA8FFA #D6CAFD

Accessibility & contrast

On white

4.67
#7D54F8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#7D54F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D54F8
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D54F8#FFFFFF#000000##FFFFFF
##7D54F81.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078FD
Deuteranopia (green-blind)
#0070F5
Tritanopia (blue-blind)
#517D9F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7d54f8;
/* rgb */ color: rgb(125, 84, 248);
/* oklch */ color: oklch(58.3% 0.231 288.6);
Tailwind
colors: {
  custom: {
    50: '#ac87fc',
    500: '#7d54f8',
    950: '#000000',
  },
}
SCSS
$custom: #7d54f8;
$custom-light: #ac87fc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d54f8",
  "rgb": {
    "r": 125,
    "g": 84,
    "b": 248
  },
  "hsl": {
    "h": 255,
    "s": 92.135,
    "l": 65.098
  },
  "oklch": {
    "l": 0.58307,
    "c": 0.23104,
    "h": 288.6
  },
  "luminance": 0.17478
}

Semantic roles & 50–950 ramp

primary
#7D54F8
secondary
#E2F0B8
accent
#E600AC
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B18
muted
#807C86

Preview Lab

Preview with #7D54F8

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

Preview Lab → · Contrast checker → · Palette generator →

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