#7D5FA5#7D5FA5

#7D5FA5 is a mid, moderate violet. Relative luminance 0.153; OKLCH L 54.5% C 0.110 H 302.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7D5FA5
RGBrgb(125, 95, 165)
HSLhsl(266, 28%, 51%)
HSVhsv(266, 42%, 65%)
CMYKcmyk(24.2%, 42.4%, 0%, 35.3%)
CIE-LABlab(45.99, 26.89, -33.33)
CIE-LCHlch(45.99, 42.83, 308.89°)
OKLaboklab(54.52% 0.0596 -0.0929)
OKLCHoklch(54.52% 0.11 302.7)
XYZxyz(19.3397, 15.2610, 37.5168)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5FA5 #87A55F
analogous
#5F64A5 #7D5FA5 #A05FA5
triadic
#7D5FA5 #A57D5F #5FA57D
tetradic
#7D5FA5 #A55F64 #87A55F #5FA5A0
square
#7D5FA5 #A55F64 #87A55F #5FA5A0
split-complementary
#7D5FA5 #A5A05F #64A55F
monochromatic
#423258 #5F487F #7D5FA5 #9D86BB #BDADD1

Accessibility & contrast

On white

5.18
#7D5FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7D5FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5FA5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5FA5#FFFFFF#000000##FFFFFF
##7D5FA51.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6CA8
Deuteranopia (green-blind)
#546DA3
Tritanopia (blue-blind)
#766B7A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d5fa5;
/* rgb */ color: rgb(125, 95, 165);
/* oklch */ color: oklch(54.5% 0.110 302.7);
Tailwind
colors: {
  custom: {
    50: '#a48dc0',
    500: '#7d5fa5',
    950: '#000000',
  },
}
SCSS
$custom: #7d5fa5;
$custom-light: #a48dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5fa5",
  "rgb": {
    "r": 125,
    "g": 95,
    "b": 165
  },
  "hsl": {
    "h": 265.714,
    "s": 28,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54522,
    "c": 0.11038,
    "h": 302.7
  },
  "luminance": 0.15261
}

Semantic roles & 50–950 ramp

primary
#7D5FA5
secondary
#B2BFA0
accent
#C4639B
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7D5FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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