#7C5FA7#7C5FA7

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

Color values

HEX#7C5FA7
RGBrgb(124, 95, 167)
HSLhsl(264, 29%, 51%)
HSVhsv(264, 43%, 65%)
CMYKcmyk(25.7%, 43.1%, 0%, 34.5%)
CIE-LABlab(45.99, 27.09, -34.52)
CIE-LCHlch(45.99, 43.88, 308.12°)
OKLaboklab(54.53% 0.0587 -0.0964)
OKLCHoklch(54.53% 0.113 301.3)
XYZxyz(19.3779, 15.2595, 38.4762)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5FA7 #8AA75F
analogous
#5F66A7 #7C5FA7 #A05FA7
triadic
#7C5FA7 #A77C5F #5FA77C
tetradic
#7C5FA7 #A75F66 #8AA75F #5FA7A0
square
#7C5FA7 #A75F66 #8AA75F #5FA7A0
split-complementary
#7C5FA7 #A7A05F #66A75F
monochromatic
#42325A #5F4782 #7C5FA7 #9C86BD #BDAED2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C5FA7#FFFFFF#000000##FFFFFF
##7C5FA71.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)
#4C6CAA
Deuteranopia (green-blind)
#526DA5
Tritanopia (blue-blind)
#746B7B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7c5fa7;
/* rgb */ color: rgb(124, 95, 167);
/* oklch */ color: oklch(54.5% 0.113 301.3);
Tailwind
colors: {
  custom: {
    50: '#a38dc1',
    500: '#7c5fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7c5fa7;
$custom-light: #a38dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5fa7",
  "rgb": {
    "r": 124,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 264.167,
    "s": 29.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5453,
    "c": 0.11286,
    "h": 301.3
  },
  "luminance": 0.1526
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C5FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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