#7D5EC7#7D5EC7

#7D5EC7 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.3% C 0.157 H 294.4°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7D5EC7
RGBrgb(125, 94, 199)
HSLhsl(258, 48%, 57%)
HSVhsv(258, 53%, 78%)
CMYKcmyk(37.2%, 52.8%, 0%, 22%)
CIE-LABlab(47.61, 36.34, -50.57)
CIE-LCHlch(47.61, 62.28, 305.70°)
OKLaboklab(56.34% 0.065 -0.1432)
OKLCHoklch(56.34% 0.157 294.4)
XYZxyz(22.7663, 16.4884, 56.0049)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5EC7 #A8C75E
analogous
#5E74C7 #7D5EC7 #B15EC7
triadic
#7D5EC7 #C77D5E #5EC77D
tetradic
#7D5EC7 #C75E74 #A8C75E #5EC7B1
square
#7D5EC7 #C75E74 #A8C75E #5EC7B1
split-complementary
#7D5EC7 #C7B15E #74C75E
monochromatic
#442C7F #5D3CAC #7D5EC7 #A28BD7 #C6B9E7

Accessibility & contrast

On white

4.89
#7D5EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7D5EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5EC7
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5EC7#FFFFFF#000000##FFFFFF
##7D5EC71.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3272CB
Deuteranopia (green-blind)
#396FC5
Tritanopia (blue-blind)
#6B7389
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7d5ec7;
/* rgb */ color: rgb(125, 94, 199);
/* oklch */ color: oklch(56.3% 0.157 294.4);
Tailwind
colors: {
  custom: {
    50: '#a68cd8',
    500: '#7d5ec7',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ec7;
$custom-light: #a68cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ec7",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 199
  },
  "hsl": {
    "h": 257.714,
    "s": 48.387,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56337,
    "c": 0.15732,
    "h": 294.4
  },
  "luminance": 0.16489
}

Semantic roles & 50–950 ramp

primary
#7D5EC7
secondary
#C9D6AB
accent
#D850B0
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7D5EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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