#7D5FD8#7D5FD8

#7D5FD8 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.6% C 0.178 H 291.2°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7D5FD8
RGBrgb(125, 95, 216)
HSLhsl(255, 61%, 61%)
HSVhsv(255, 56%, 85%)
CMYKcmyk(42.1%, 56%, 0%, 15.3%)
CIE-LABlab(48.89, 40.43, -58.25)
CIE-LCHlch(48.89, 70.91, 304.76°)
OKLaboklab(57.62% 0.0644 -0.1658)
OKLCHoklch(57.62% 0.178 291.2)
XYZxyz(24.9409, 17.5015, 67.0165)
Luminance0.1750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5FD8 #BAD85F
analogous
#5F7DD8 #7D5FD8 #B95FD8
triadic
#7D5FD8 #D87D5F #5FD87D
tetradic
#7D5FD8 #D85F7D #BAD85F #5FD8B9
square
#7D5FD8 #D85F7D #BAD85F #5FD8B9
split-complementary
#7D5FD8 #D8B95F #7DD85F
monochromatic
#412598 #5731C9 #7D5FD8 #A590E4 #CDC1F0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D5FD8#FFFFFF#000000##FFFFFF
##7D5FD81.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)
#1B76DC
Deuteranopia (green-blind)
#2472D5
Tritanopia (blue-blind)
#637992
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7d5fd8;
/* rgb */ color: rgb(125, 95, 216);
/* oklch */ color: oklch(57.6% 0.178 291.2);
Tailwind
colors: {
  custom: {
    50: '#a88de5',
    500: '#7d5fd8',
    950: '#000000',
  },
}
SCSS
$custom: #7d5fd8;
$custom-light: #a88de5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5fd8",
  "rgb": {
    "r": 125,
    "g": 95,
    "b": 216
  },
  "hsl": {
    "h": 254.876,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.57619,
    "c": 0.17786,
    "h": 291.2
  },
  "luminance": 0.17502
}

Semantic roles & 50–950 ramp

primary
#7D5FD8
secondary
#D5E0B3
accent
#C81D9E
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7D5FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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