#7D5EC2#7D5EC2

#7D5EC2 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.0% C 0.151 H 295.4°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7D5EC2
RGBrgb(125, 94, 194)
HSLhsl(259, 45%, 56%)
HSVhsv(259, 52%, 76%)
CMYKcmyk(35.6%, 51.5%, 0%, 23.9%)
CIE-LABlab(47.31, 35.00, -48.16)
CIE-LCHlch(47.31, 59.53, 306.00°)
OKLaboklab(56.02% 0.0647 -0.1362)
OKLCHoklch(56.02% 0.151 295.4)
XYZxyz(22.1953, 16.2600, 52.9976)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5EC2 #A3C25E
analogous
#5E71C2 #7D5EC2 #AF5EC2
triadic
#7D5EC2 #C27D5E #5EC27D
tetradic
#7D5EC2 #C25E71 #A3C25E #5EC2AF
square
#7D5EC2 #C25E71 #A3C25E #5EC2AF
split-complementary
#7D5EC2 #C2AF5E #71C25E
monochromatic
#452E78 #5E3EA4 #7D5EC2 #A18AD3 #C5B7E4

Accessibility & contrast

On white

4.94
#7D5EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7D5EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5EC2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5EC2#FFFFFF#000000##FFFFFF
##7D5EC21.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3771C5
Deuteranopia (green-blind)
#3E6FC0
Tritanopia (blue-blind)
#6D7287
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d5ec2;
/* rgb */ color: rgb(125, 94, 194);
/* oklch */ color: oklch(56.0% 0.151 295.4);
Tailwind
colors: {
  custom: {
    50: '#a68cd5',
    500: '#7d5ec2',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ec2;
$custom-light: #a68cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ec2",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 258.6,
    "s": 45.045,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56022,
    "c": 0.15077,
    "h": 295.4
  },
  "luminance": 0.1626
}

Semantic roles & 50–950 ramp

primary
#7D5EC2
secondary
#C6D2A9
accent
#D553AD
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7D5EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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