#7D5CE7#7D5CE7

#7D5CE7 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.2% C 0.201 H 289.6°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7D5CE7
RGBrgb(125, 92, 231)
HSLhsl(254, 74%, 63%)
HSVhsv(254, 60%, 91%)
CMYKcmyk(45.9%, 60.2%, 0%, 9.4%)
CIE-LABlab(49.23, 46.31, -66.19)
CIE-LCHlch(49.23, 80.78, 304.98°)
OKLaboklab(58.19% 0.0674 -0.1891)
OKLCHoklch(58.19% 0.201 289.6)
XYZxyz(26.7043, 17.7828, 77.6112)
Luminance0.1778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CE7 #C6E75C
analogous
#5C80E7 #7D5CE7 #C35CE7
triadic
#7D5CE7 #E77D5C #5CE77D
tetradic
#7D5CE7 #E75C80 #C6E75C #5CE7C3
square
#7D5CE7 #E75C80 #C6E75C #5CE7C3
split-complementary
#7D5CE7 #E7C35C #80E75C
monochromatic
#3D1AAF #5227DF #7D5CE7 #A891EF #D2C7F7

Accessibility & contrast

On white

4.61
#7D5CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7D5CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CE7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CE7#FFFFFF#000000##FFFFFF
##7D5CE71.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078EB
Deuteranopia (green-blind)
#0072E4
Tritanopia (blue-blind)
#5C7C99
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d5ce7;
/* rgb */ color: rgb(125, 92, 231);
/* oklch */ color: oklch(58.2% 0.201 289.6);
Tailwind
colors: {
  custom: {
    50: '#aa8bef',
    500: '#7d5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ce7;
$custom-light: #aa8bef;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ce7",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 254.245,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.58191,
    "c": 0.20078,
    "h": 289.6
  },
  "luminance": 0.17784
}

Semantic roles & 50–950 ramp

primary
#7D5CE7
secondary
#DCE8B7
accent
#D60FA7
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7D5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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