#7D5CE4#7D5CE4

#7D5CE4 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 58.0% C 0.197 H 290.0°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7D5CE4
RGBrgb(125, 92, 228)
HSLhsl(255, 72%, 63%)
HSVhsv(255, 60%, 89%)
CMYKcmyk(45.2%, 59.6%, 0%, 10.6%)
CIE-LABlab(49.03, 45.47, -64.83)
CIE-LCHlch(49.03, 79.19, 305.05°)
OKLaboklab(57.98% 0.0675 -0.1851)
OKLCHoklch(57.98% 0.197 290)
XYZxyz(26.2842, 17.6147, 75.3988)
Luminance0.1762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CE4 #C3E45C
analogous
#5C7FE4 #7D5CE4 #C15CE4
triadic
#7D5CE4 #E47D5C #5CE47D
tetradic
#7D5CE4 #E45C7F #C3E45C #5CE4C1
square
#7D5CE4 #E45C7F #C3E45C #5CE4C1
split-complementary
#7D5CE4 #E4C15C #7FE45C
monochromatic
#3E1CAA #5327DB #7D5CE4 #A791ED #D1C5F5

Accessibility & contrast

On white

4.64
#7D5CE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#7D5CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CE4
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CE4#FFFFFF#000000##FFFFFF
##7D5CE41.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#5D7B97
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7d5ce4;
/* rgb */ color: rgb(125, 92, 228);
/* oklch */ color: oklch(58.0% 0.197 290.0);
Tailwind
colors: {
  custom: {
    50: '#a98bed',
    500: '#7d5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ce4;
$custom-light: #a98bed;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ce4",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 254.559,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57975,
    "c": 0.19708,
    "h": 290
  },
  "luminance": 0.17616
}

Semantic roles & 50–950 ramp

primary
#7D5CE4
secondary
#DBE7B5
accent
#D412A5
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7D5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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