#7D5DF6#7D5DF6

#7D5DF6 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.5% C 0.218 H 287.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7D5DF6
RGBrgb(125, 93, 246)
HSLhsl(253, 89%, 66%)
HSVhsv(253, 62%, 96%)
CMYKcmyk(49.2%, 62.2%, 0%, 3.5%)
CIE-LABlab(50.50, 49.97, -72.54)
CIE-LCHlch(50.50, 88.08, 304.56°)
OKLaboklab(59.45% 0.0654 -0.2078)
OKLCHoklch(59.45% 0.218 287.5)
XYZxyz(29.0015, 18.8412, 89.2795)
Luminance0.1884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5DF6 #D6F65D
analogous
#5D8AF6 #7D5DF6 #CA5DF6
triadic
#7D5DF6 #F67D5D #5DF67D
tetradic
#7D5DF6 #F65D8A #D6F65D #5DF6CA
square
#7D5DF6 #F65D8A #D6F65D #5DF6CA
split-complementary
#7D5DF6 #F6CA5D #8AF65D
monochromatic
#340BCD #4E23F3 #7D5DF6 #AC97F9 #DAD1FC

Accessibility & contrast

On white

4.40
#7D5DF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#7D5DF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D5DF6
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5DF6#FFFFFF#000000##000000
##7D5DF61.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFB
Deuteranopia (green-blind)
#0074F3
Tritanopia (blue-blind)
#5282A1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7d5df6;
/* rgb */ color: rgb(125, 93, 246);
/* oklch */ color: oklch(59.5% 0.218 287.5);
Tailwind
colors: {
  custom: {
    50: '#ab8cfa',
    500: '#7d5df6',
    950: '#000000',
  },
}
SCSS
$custom: #7d5df6;
$custom-light: #ab8cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5df6",
  "rgb": {
    "r": 125,
    "g": 93,
    "b": 246
  },
  "hsl": {
    "h": 252.549,
    "s": 89.474,
    "l": 66.471
  },
  "oklch": {
    "l": 0.5945,
    "c": 0.21785,
    "h": 287.5
  },
  "luminance": 0.18842
}

Semantic roles & 50–950 ramp

primary
#7D5DF6
secondary
#E6F0BF
accent
#E600B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7D5DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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