#7D5CE2#7D5CE2

#7D5CE2 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.8% C 0.195 H 290.3°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7D5CE2
RGBrgb(125, 92, 226)
HSLhsl(255, 70%, 62%)
HSVhsv(255, 59%, 89%)
CMYKcmyk(44.7%, 59.3%, 0%, 11.4%)
CIE-LABlab(48.89, 44.91, -63.92)
CIE-LCHlch(48.89, 78.12, 305.09°)
OKLaboklab(57.83% 0.0676 -0.1825)
OKLCHoklch(57.83% 0.195 290.3)
XYZxyz(26.0082, 17.5043, 73.9451)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CE2 #C1E25C
analogous
#5C7EE2 #7D5CE2 #C05CE2
triadic
#7D5CE2 #E27D5C #5CE27D
tetradic
#7D5CE2 #E25C7E #C1E25C #5CE2C0
square
#7D5CE2 #E25C7E #C1E25C #5CE2C0
split-complementary
#7D5CE2 #E2C05C #7EE25C
monochromatic
#3F1EA6 #5428D9 #7D5CE2 #A690EB #D0C4F4

Accessibility & contrast

On white

4.67
#7D5CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#7D5CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CE2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CE2#FFFFFF#000000##FFFFFF
##7D5CE21.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#0071DF
Tritanopia (blue-blind)
#5F7A96
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7d5ce2;
/* rgb */ color: rgb(125, 92, 226);
/* oklch */ color: oklch(57.8% 0.195 290.3);
Tailwind
colors: {
  custom: {
    50: '#a98bec',
    500: '#7d5ce2',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ce2;
$custom-light: #a98bec;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ce2",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 226
  },
  "hsl": {
    "h": 254.776,
    "s": 69.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57832,
    "c": 0.19459,
    "h": 290.3
  },
  "luminance": 0.17505
}

Semantic roles & 50–950 ramp

primary
#7D5CE2
secondary
#D9E5B4
accent
#D214A3
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7D5CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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