#7D5DE5#7D5DE5

#7D5DE5 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.2% C 0.197 H 289.7°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7D5DE5
RGBrgb(125, 93, 229)
HSLhsl(254, 72%, 63%)
HSVhsv(254, 59%, 90%)
CMYKcmyk(45.4%, 59.4%, 0%, 10.2%)
CIE-LABlab(49.31, 45.19, -64.94)
CIE-LCHlch(49.31, 79.11, 304.83°)
OKLaboklab(58.2% 0.0664 -0.1855)
OKLCHoklch(58.2% 0.197 289.7)
XYZxyz(26.5107, 17.8448, 76.1611)
Luminance0.1785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5DE5 #C5E55D
analogous
#5D81E5 #7D5DE5 #C15DE5
triadic
#7D5DE5 #E57D5D #5DE57D
tetradic
#7D5DE5 #E55D81 #C5E55D #5DE5C1
square
#7D5DE5 #E55D81 #C5E55D #5DE5C1
split-complementary
#7D5DE5 #E5C15D #81E55D
monochromatic
#3E1CAC #5328DD #7D5DE5 #A792ED #D2C6F6

Accessibility & contrast

On white

4.60
#7D5DE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7D5DE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5DE5
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5DE5#FFFFFF#000000##FFFFFF
##7D5DE51.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078E9
Deuteranopia (green-blind)
#0072E2
Tritanopia (blue-blind)
#5D7C98
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d5de5;
/* rgb */ color: rgb(125, 93, 229);
/* oklch */ color: oklch(58.2% 0.197 289.7);
Tailwind
colors: {
  custom: {
    50: '#aa8cee',
    500: '#7d5de5',
    950: '#000000',
  },
}
SCSS
$custom: #7d5de5;
$custom-light: #aa8cee;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5de5",
  "rgb": {
    "r": 125,
    "g": 93,
    "b": 229
  },
  "hsl": {
    "h": 254.118,
    "s": 72.34,
    "l": 63.137
  },
  "oklch": {
    "l": 0.58203,
    "c": 0.19698,
    "h": 289.7
  },
  "luminance": 0.17846
}

Semantic roles & 50–950 ramp

primary
#7D5DE5
secondary
#DCE7B7
accent
#D411A6
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7D5DE5

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

Preview Lab → · Contrast checker → · Palette generator →

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