#7D5CD3#7D5CD3

#7D5CD3 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.8% C 0.176 H 292.7°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7D5CD3
RGBrgb(125, 92, 211)
HSLhsl(257, 57%, 59%)
HSVhsv(257, 56%, 83%)
CMYKcmyk(40.8%, 56.4%, 0%, 17.3%)
CIE-LABlab(47.90, 40.77, -56.99)
CIE-LCHlch(47.90, 70.07, 305.58°)
OKLaboklab(56.79% 0.0678 -0.1621)
OKLCHoklch(56.79% 0.176 292.7)
XYZxyz(24.0393, 16.7168, 63.5755)
Luminance0.1672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CD3 #B2D35C
analogous
#5C77D3 #7D5CD3 #B95CD3
triadic
#7D5CD3 #D37D5C #5CD37D
tetradic
#7D5CD3 #D35C77 #B2D35C #5CD3B9
square
#7D5CD3 #D35C77 #B2D35C #5CD3B9
split-complementary
#7D5CD3 #D3B95C #77D35C
monochromatic
#43268E #5A33BE #7D5CD3 #A38CE0 #CABCED

Accessibility & contrast

On white

4.83
#7D5CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7D5CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CD3
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CD3#FFFFFF#000000##FFFFFF
##7D5CD31.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A73D7
Deuteranopia (green-blind)
#266FD0
Tritanopia (blue-blind)
#66768F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7d5cd3;
/* rgb */ color: rgb(125, 92, 211);
/* oklch */ color: oklch(56.8% 0.176 292.7);
Tailwind
colors: {
  custom: {
    50: '#a88be1',
    500: '#7d5cd3',
    950: '#000000',
  },
}
SCSS
$custom: #7d5cd3;
$custom-light: #a88be1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5cd3",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 211
  },
  "hsl": {
    "h": 256.639,
    "s": 57.488,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56791,
    "c": 0.17572,
    "h": 292.7
  },
  "luminance": 0.16717
}

Semantic roles & 50–950 ramp

primary
#7D5CD3
secondary
#D0DDAE
accent
#E147B6
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7D5CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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