#7C5ABA#7C5ABA

#7C5ABA is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.7% C 0.146 H 297.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7C5ABA
RGBrgb(124, 90, 186)
HSLhsl(261, 41%, 54%)
HSVhsv(261, 52%, 73%)
CMYKcmyk(33.3%, 51.6%, 0%, 27.1%)
CIE-LABlab(45.83, 34.95, -45.90)
CIE-LCHlch(45.83, 57.69, 307.29°)
OKLaboklab(54.74% 0.0681 -0.1296)
OKLCHoklch(54.74% 0.146 297.7)
XYZxyz(20.8291, 15.1423, 48.2702)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5ABA #98BA5A
analogous
#5A68BA #7C5ABA #AC5ABA
triadic
#7C5ABA #BA7C5A #5ABA7C
tetradic
#7C5ABA #BA5A68 #98BA5A #5ABAAC
square
#7C5ABA #BA5A68 #98BA5A #5ABAAC
split-complementary
#7C5ABA #BAAC5A #68BA5A
monochromatic
#442D6C #5F3F97 #7C5ABA #9E85CC #C1B0DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C5ABA#FFFFFF#000000##FFFFFF
##7C5ABA1.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)
#376DBD
Deuteranopia (green-blind)
#3F6CB8
Tritanopia (blue-blind)
#6E6D81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7c5aba;
/* rgb */ color: rgb(124, 90, 186);
/* oklch */ color: oklch(54.7% 0.146 297.7);
Tailwind
colors: {
  custom: {
    50: '#a589cf',
    500: '#7c5aba',
    950: '#000000',
  },
}
SCSS
$custom: #7c5aba;
$custom-light: #a589cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5aba",
  "rgb": {
    "r": 124,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 261.25,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54744,
    "c": 0.14637,
    "h": 297.7
  },
  "luminance": 0.15143
}

Semantic roles & 50–950 ramp

primary
#7C5ABA
secondary
#BECCA3
accent
#D157A6
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7C5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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