#7D5FA7#7D5FA7

#7D5FA7 is a mid, moderate violet. Relative luminance 0.153; OKLCH L 54.6% C 0.113 H 302.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7D5FA7
RGBrgb(125, 95, 167)
HSLhsl(265, 29%, 51%)
HSVhsv(265, 43%, 65%)
CMYKcmyk(25.1%, 43.1%, 0%, 34.5%)
CIE-LABlab(46.09, 27.39, -34.36)
CIE-LCHlch(46.09, 43.94, 308.56°)
OKLaboklab(54.63% 0.0599 -0.0959)
OKLCHoklch(54.63% 0.113 302)
XYZxyz(19.5232, 15.3344, 38.4830)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5FA7 #89A75F
analogous
#5F65A7 #7D5FA7 #A15FA7
triadic
#7D5FA7 #A77D5F #5FA77D
tetradic
#7D5FA7 #A75F65 #89A75F #5FA7A1
square
#7D5FA7 #A75F65 #89A75F #5FA7A1
split-complementary
#7D5FA7 #A7A15F #65A75F
monochromatic
#42325A #604782 #7D5FA7 #9D86BD #BDAED2

Accessibility & contrast

On white

5.16
#7D5FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7D5FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5FA7
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5FA7#FFFFFF#000000##FFFFFF
##7D5FA71.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6DAA
Deuteranopia (green-blind)
#536DA5
Tritanopia (blue-blind)
#766B7B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d5fa7;
/* rgb */ color: rgb(125, 95, 167);
/* oklch */ color: oklch(54.6% 0.113 302.0);
Tailwind
colors: {
  custom: {
    50: '#a48dc1',
    500: '#7d5fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7d5fa7;
$custom-light: #a48dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5fa7",
  "rgb": {
    "r": 125,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 265,
    "s": 29.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5463,
    "c": 0.11309,
    "h": 302
  },
  "luminance": 0.15334
}

Semantic roles & 50–950 ramp

primary
#7D5FA7
secondary
#B4C1A1
accent
#C5629C
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7D5FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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