#7D5EC6#7D5EC6

#7D5EC6 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.3% C 0.156 H 294.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7D5EC6
RGBrgb(125, 94, 198)
HSLhsl(258, 48%, 57%)
HSVhsv(258, 53%, 78%)
CMYKcmyk(36.9%, 52.5%, 0%, 22.4%)
CIE-LABlab(47.55, 36.07, -50.09)
CIE-LCHlch(47.55, 61.73, 305.76°)
OKLaboklab(56.27% 0.065 -0.1418)
OKLCHoklch(56.27% 0.156 294.6)
XYZxyz(22.6506, 16.4421, 55.3954)
Luminance0.1644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5EC6 #A7C65E
analogous
#5E73C6 #7D5EC6 #B15EC6
triadic
#7D5EC6 #C67D5E #5EC67D
tetradic
#7D5EC6 #C65E73 #A7C65E #5EC6B1
square
#7D5EC6 #C65E73 #A7C65E #5EC6B1
split-complementary
#7D5EC6 #C6B15E #73C65E
monochromatic
#442C7D #5D3CAA #7D5EC6 #A18BD6 #C6B8E6

Accessibility & contrast

On white

4.90
#7D5EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7D5EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5EC6
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5EC6#FFFFFF#000000##FFFFFF
##7D5EC61.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3372CA
Deuteranopia (green-blind)
#3A6FC4
Tritanopia (blue-blind)
#6B7389
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7d5ec6;
/* rgb */ color: rgb(125, 94, 198);
/* oklch */ color: oklch(56.3% 0.156 294.6);
Tailwind
colors: {
  custom: {
    50: '#a68cd8',
    500: '#7d5ec6',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ec6;
$custom-light: #a68cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ec6",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 198
  },
  "hsl": {
    "h": 257.885,
    "s": 47.706,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56273,
    "c": 0.15601,
    "h": 294.6
  },
  "luminance": 0.16443
}

Semantic roles & 50–950 ramp

primary
#7D5EC6
secondary
#C8D5AB
accent
#D750AF
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7D5EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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