#7D5CE5#7D5CE5

#7D5CE5 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.0% C 0.198 H 289.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7D5CE5
RGBrgb(125, 92, 229)
HSLhsl(254, 72%, 63%)
HSVhsv(254, 60%, 90%)
CMYKcmyk(45.4%, 59.8%, 0%, 10.2%)
CIE-LABlab(49.09, 45.75, -65.28)
CIE-LCHlch(49.09, 79.72, 305.02°)
OKLaboklab(58.05% 0.0675 -0.1865)
OKLCHoklch(58.05% 0.198 289.9)
XYZxyz(26.4235, 17.6704, 76.1320)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CE5 #C4E55C
analogous
#5C7FE5 #7D5CE5 #C25CE5
triadic
#7D5CE5 #E57D5C #5CE57D
tetradic
#7D5CE5 #E55C7F #C4E55C #5CE5C2
square
#7D5CE5 #E55C7F #C4E55C #5CE5C2
split-complementary
#7D5CE5 #E5C25C #7FE55C
monochromatic
#3E1BAB #5327DD #7D5CE5 #A791ED #D1C6F6

Accessibility & contrast

On white

4.63
#7D5CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7D5CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CE5
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CE5#FFFFFF#000000##FFFFFF
##7D5CE51.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E9
Deuteranopia (green-blind)
#0071E2
Tritanopia (blue-blind)
#5D7B98
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d5ce5;
/* rgb */ color: rgb(125, 92, 229);
/* oklch */ color: oklch(58.0% 0.198 289.9);
Tailwind
colors: {
  custom: {
    50: '#aa8bee',
    500: '#7d5ce5',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ce5;
$custom-light: #aa8bee;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ce5",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 254.453,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.58046,
    "c": 0.19831,
    "h": 289.9
  },
  "luminance": 0.17671
}

Semantic roles & 50–950 ramp

primary
#7D5CE5
secondary
#DBE7B6
accent
#D511A5
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7D5CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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