#7C5FA5#7C5FA5

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

Color values

HEX#7C5FA5
RGBrgb(124, 95, 165)
HSLhsl(265, 28%, 51%)
HSVhsv(265, 42%, 65%)
CMYKcmyk(24.8%, 42.4%, 0%, 35.3%)
CIE-LABlab(45.89, 26.59, -33.50)
CIE-LCHlch(45.89, 42.77, 308.44°)
OKLaboklab(54.42% 0.0583 -0.0934)
OKLCHoklch(54.42% 0.11 302)
XYZxyz(19.1944, 15.1861, 37.5100)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5FA5 #88A55F
analogous
#5F65A5 #7C5FA5 #9F5FA5
triadic
#7C5FA5 #A57C5F #5FA57C
tetradic
#7C5FA5 #A55F65 #88A55F #5FA59F
square
#7C5FA5 #A55F65 #88A55F #5FA59F
split-complementary
#7C5FA5 #A59F5F #65A55F
monochromatic
#413258 #5F487F #7C5FA5 #9C86BB #BCADD1

Accessibility & contrast

On white

5.20
#7C5FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7C5FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5FA5
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5FA5#FFFFFF#000000##FFFFFF
##7C5FA51.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6CA8
Deuteranopia (green-blind)
#536CA3
Tritanopia (blue-blind)
#756B7A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7c5fa5;
/* rgb */ color: rgb(124, 95, 165);
/* oklch */ color: oklch(54.4% 0.110 302.0);
Tailwind
colors: {
  custom: {
    50: '#a38dc0',
    500: '#7c5fa5',
    950: '#000000',
  },
}
SCSS
$custom: #7c5fa5;
$custom-light: #a38dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5fa5",
  "rgb": {
    "r": 124,
    "g": 95,
    "b": 165
  },
  "hsl": {
    "h": 264.857,
    "s": 28,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54422,
    "c": 0.11015,
    "h": 302
  },
  "luminance": 0.15186
}

Semantic roles & 50–950 ramp

primary
#7C5FA5
secondary
#B3BFA0
accent
#C4639C
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7C5FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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