#7D5FA2#7D5FA2

#7D5FA2 is a mid, moderate violet. Relative luminance 0.152; OKLCH L 54.4% C 0.106 H 303.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7D5FA2
RGBrgb(125, 95, 162)
HSLhsl(267, 26%, 50%)
HSVhsv(267, 41%, 64%)
CMYKcmyk(22.8%, 41.4%, 0%, 36.5%)
CIE-LABlab(45.84, 26.15, -31.79)
CIE-LCHlch(45.84, 41.16, 309.43°)
OKLaboklab(54.36% 0.059 -0.0885)
OKLCHoklch(54.36% 0.106 303.7)
XYZxyz(19.0699, 15.1531, 36.0956)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5FA2 #84A25F
analogous
#5F62A2 #7D5FA2 #9E5FA2
triadic
#7D5FA2 #A27D5F #5FA27D
tetradic
#7D5FA2 #A25F62 #84A25F #5FA29E
square
#7D5FA2 #A25F62 #84A25F #5FA29E
split-complementary
#7D5FA2 #A29E5F #62A25F
monochromatic
#413155 #5F487C #7D5FA2 #9C86B8 #BCACCF

Accessibility & contrast

On white

5.21
#7D5FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7D5FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5FA2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5FA2#FFFFFF#000000##FFFFFF
##7D5FA21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6CA5
Deuteranopia (green-blind)
#556DA0
Tritanopia (blue-blind)
#776A79
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d5fa2;
/* rgb */ color: rgb(125, 95, 162);
/* oklch */ color: oklch(54.4% 0.106 303.7);
Tailwind
colors: {
  custom: {
    50: '#a48dbe',
    500: '#7d5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7d5fa2;
$custom-light: #a48dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5fa2",
  "rgb": {
    "r": 125,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 266.866,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54364,
    "c": 0.10634,
    "h": 303.7
  },
  "luminance": 0.15153
}

Semantic roles & 50–950 ramp

primary
#7D5FA2
secondary
#B0BD9F
accent
#C36599
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7D5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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