#7D5EC1#7D5EC1

#7D5EC1 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.0% C 0.149 H 295.6°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7D5EC1
RGBrgb(125, 94, 193)
HSLhsl(259, 44%, 56%)
HSVhsv(259, 51%, 76%)
CMYKcmyk(35.2%, 51.3%, 0%, 24.3%)
CIE-LABlab(47.26, 34.73, -47.68)
CIE-LCHlch(47.26, 58.98, 306.07°)
OKLaboklab(55.96% 0.0646 -0.1348)
OKLCHoklch(55.96% 0.149 295.6)
XYZxyz(22.0833, 16.2153, 52.4081)
Luminance0.1622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5EC1 #A2C15E
analogous
#5E71C1 #7D5EC1 #AF5EC1
triadic
#7D5EC1 #C17D5E #5EC17D
tetradic
#7D5EC1 #C15E71 #A2C15E #5EC1AF
square
#7D5EC1 #C15E71 #A2C15E #5EC1AF
split-complementary
#7D5EC1 #C1AF5E #71C15E
monochromatic
#452E77 #5E3FA3 #7D5EC1 #A18AD2 #C4B6E3

Accessibility & contrast

On white

4.95
#7D5EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7D5EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5EC1
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5EC1#FFFFFF#000000##FFFFFF
##7D5EC11.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3871C4
Deuteranopia (green-blind)
#3F6FBF
Tritanopia (blue-blind)
#6D7287
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d5ec1;
/* rgb */ color: rgb(125, 94, 193);
/* oklch */ color: oklch(56.0% 0.149 295.6);
Tailwind
colors: {
  custom: {
    50: '#a68cd4',
    500: '#7d5ec1',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ec1;
$custom-light: #a68cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ec1",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 193
  },
  "hsl": {
    "h": 258.788,
    "s": 44.395,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5596,
    "c": 0.14946,
    "h": 295.6
  },
  "luminance": 0.16216
}

Semantic roles & 50–950 ramp

primary
#7D5EC1
secondary
#C5D2A9
accent
#D454AC
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7D5EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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