#7C579C#7C579C

#7C579C is a mid, moderate violet. Relative luminance 0.135; OKLCH L 52.5% C 0.112 H 307.7°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7C579C
RGBrgb(124, 87, 156)
HSLhsl(272, 28%, 48%)
HSVhsv(272, 44%, 61%)
CMYKcmyk(20.5%, 44.2%, 0%, 38.8%)
CIE-LABlab(43.51, 29.13, -31.90)
CIE-LCHlch(43.51, 43.20, 312.40°)
OKLaboklab(52.49% 0.0686 -0.0888)
OKLCHoklch(52.49% 0.112 307.7)
XYZxyz(17.7200, 13.5020, 33.1187)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C579C #779C57
analogous
#5A579C #7C579C #9C5799
triadic
#7C579C #9C7C57 #579C7C
tetradic
#7C579C #9C5A57 #779C57 #57999C
square
#7C579C #9C5A57 #779C57 #57999C
split-complementary
#7C579C #999C57 #579C5A
monochromatic
#3E2B4D #5D4175 #7C579C #9A7BB5 #B8A2CB

Accessibility & contrast

On white

5.68
#7C579C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#7C579C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C579C
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C579C#FFFFFF#000000##FFFFFF
##7C579C1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47659F
Deuteranopia (green-blind)
#50679A
Tritanopia (blue-blind)
#786272
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7c579c;
/* rgb */ color: rgb(124, 87, 156);
/* oklch */ color: oklch(52.5% 0.112 307.7);
Tailwind
colors: {
  custom: {
    50: '#a387b9',
    500: '#7c579c',
    950: '#000000',
  },
}
SCSS
$custom: #7c579c;
$custom-light: #a387b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c579c",
  "rgb": {
    "r": 124,
    "g": 87,
    "b": 156
  },
  "hsl": {
    "h": 272.174,
    "s": 28.395,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52485,
    "c": 0.11217,
    "h": 307.7
  },
  "luminance": 0.13502
}

Semantic roles & 50–950 ramp

primary
#7C579C
secondary
#A6B996
accent
#C56390
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0B11
muted
#7F7C80

Preview Lab

Preview with #7C579C

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

Preview Lab → · Contrast checker → · Palette generator →

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