#7C5FA2#7C5FA2

#7C5FA2 is a mid, moderate violet. Relative luminance 0.151; OKLCH L 54.3% C 0.106 H 303.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7C5FA2
RGBrgb(124, 95, 162)
HSLhsl(266, 26%, 50%)
HSVhsv(266, 41%, 64%)
CMYKcmyk(23.5%, 41.4%, 0%, 36.5%)
CIE-LABlab(45.74, 25.84, -31.96)
CIE-LCHlch(45.74, 41.10, 308.96°)
OKLaboklab(54.26% 0.0577 -0.089)
OKLCHoklch(54.26% 0.106 303)
XYZxyz(18.9246, 15.0782, 36.0888)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5FA2 #85A25F
analogous
#5F63A2 #7C5FA2 #9D5FA2
triadic
#7C5FA2 #A27C5F #5FA27C
tetradic
#7C5FA2 #A25F63 #85A25F #5FA29D
square
#7C5FA2 #A25F63 #85A25F #5FA29D
split-complementary
#7C5FA2 #A29D5F #63A25F
monochromatic
#413155 #5E487C #7C5FA2 #9C86B8 #BBACCF

Accessibility & contrast

On white

5.23
#7C5FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#7C5FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5FA2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5FA2#FFFFFF#000000##FFFFFF
##7C5FA21.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6CA5
Deuteranopia (green-blind)
#556CA0
Tritanopia (blue-blind)
#766A79
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7c5fa2;
/* rgb */ color: rgb(124, 95, 162);
/* oklch */ color: oklch(54.3% 0.106 303.0);
Tailwind
colors: {
  custom: {
    50: '#a38dbe',
    500: '#7c5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7c5fa2;
$custom-light: #a38dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5fa2",
  "rgb": {
    "r": 124,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 265.97,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54263,
    "c": 0.10607,
    "h": 303
  },
  "luminance": 0.15078
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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