#7B519D#7B519D

#7B519D is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.4% C 0.124 H 308.1°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7B519D
RGBrgb(123, 81, 157)
HSLhsl(273, 32%, 47%)
HSVhsv(273, 48%, 62%)
CMYKcmyk(21.7%, 48.4%, 0%, 38.4%)
CIE-LABlab(42.05, 32.59, -34.81)
CIE-LCHlch(42.05, 47.68, 313.11°)
OKLaboklab(51.38% 0.0763 -0.0972)
OKLCHoklch(51.38% 0.124 308.1)
XYZxyz(17.1954, 12.5303, 33.4045)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B519D #739D51
analogous
#55519D #7B519D #9D5199
triadic
#7B519D #9D7B51 #519D7B
tetradic
#7B519D #9D5551 #739D51 #51999D
square
#7B519D #9D5551 #739D51 #51999D
split-complementary
#7B519D #999D51 #519D55
monochromatic
#3C274C #5B3C75 #7B519D #9974B7 #B79CCC

Accessibility & contrast

On white

5.99
#7B519D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7B519D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B519D
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B519D#FFFFFF#000000##FFFFFF
##7B519D1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E61A0
Deuteranopia (green-blind)
#49649B
Tritanopia (blue-blind)
#765E6F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b519d;
/* rgb */ color: rgb(123, 81, 157);
/* oklch */ color: oklch(51.4% 0.124 308.1);
Tailwind
colors: {
  custom: {
    50: '#a383ba',
    500: '#7b519d',
    950: '#000000',
  },
}
SCSS
$custom: #7b519d;
$custom-light: #a383ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7b519d",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 157
  },
  "hsl": {
    "h": 273.158,
    "s": 31.933,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51382,
    "c": 0.12359,
    "h": 308.1
  },
  "luminance": 0.1253
}

Semantic roles & 50–950 ramp

primary
#7B519D
secondary
#A3B991
accent
#C8608E
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7B519D

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

Preview Lab → · Contrast checker → · Palette generator →

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