#7C5ABC#7C5ABC

#7C5ABC is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.9% C 0.149 H 297.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7C5ABC
RGBrgb(124, 90, 188)
HSLhsl(261, 42%, 55%)
HSVhsv(261, 52%, 74%)
CMYKcmyk(34%, 52.1%, 0%, 26.3%)
CIE-LABlab(45.94, 35.47, -46.88)
CIE-LCHlch(45.94, 58.79, 307.12°)
OKLaboklab(54.87% 0.0682 -0.1324)
OKLCHoklch(54.87% 0.149 297.3)
XYZxyz(21.0432, 15.2280, 49.3978)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5ABC #9ABC5A
analogous
#5A69BC #7C5ABC #AD5ABC
triadic
#7C5ABC #BC7C5A #5ABC7C
tetradic
#7C5ABC #BC5A69 #9ABC5A #5ABCAD
square
#7C5ABC #BC5A69 #9ABC5A #5ABCAD
split-complementary
#7C5ABC #BCAD5A #69BC5A
monochromatic
#442D6F #5E3F9A #7C5ABC #9F86CE #C1B1DF

Accessibility & contrast

On white

5.19
#7C5ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C5ABC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5ABC#FFFFFF#000000##FFFFFF
##7C5ABC1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356DBF
Deuteranopia (green-blind)
#3D6CBA
Tritanopia (blue-blind)
#6E6D82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7c5abc;
/* rgb */ color: rgb(124, 90, 188);
/* oklch */ color: oklch(54.9% 0.149 297.3);
Tailwind
colors: {
  custom: {
    50: '#a589d1',
    500: '#7c5abc',
    950: '#000000',
  },
}
SCSS
$custom: #7c5abc;
$custom-light: #a589d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5abc",
  "rgb": {
    "r": 124,
    "g": 90,
    "b": 188
  },
  "hsl": {
    "h": 260.816,
    "s": 42.241,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54868,
    "c": 0.14898,
    "h": 297.3
  },
  "luminance": 0.15228
}

Semantic roles & 50–950 ramp

primary
#7C5ABC
secondary
#BFCEA4
accent
#D256A7
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7C5ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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