#7B509D#7B509D

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

Color values

HEX#7B509D
RGBrgb(123, 80, 157)
HSLhsl(274, 32%, 46%)
HSVhsv(274, 49%, 62%)
CMYKcmyk(21.7%, 49%, 0%, 38.4%)
CIE-LABlab(41.82, 33.17, -35.17)
CIE-LCHlch(41.82, 48.34, 313.32°)
OKLaboklab(51.21% 0.0778 -0.0983)
OKLCHoklch(51.21% 0.125 308.4)
XYZxyz(17.1217, 12.3828, 33.3799)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B509D #729D50
analogous
#55509D #7B509D #9D5099
triadic
#7B509D #9D7B50 #509D7B
tetradic
#7B509D #9D5550 #729D50 #50999D
square
#7B509D #9D5550 #729D50 #50999D
split-complementary
#7B509D #999D50 #509D55
monochromatic
#3B274C #5B3B74 #7B509D #9973B8 #B79BCC

Accessibility & contrast

On white

6.04
#7B509D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7B509D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B509D
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B509D#FFFFFF#000000##FFFFFF
##7B509D1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C61A0
Deuteranopia (green-blind)
#48639B
Tritanopia (blue-blind)
#765D6F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b509d;
/* rgb */ color: rgb(123, 80, 157);
/* oklch */ color: oklch(51.2% 0.125 308.4);
Tailwind
colors: {
  custom: {
    50: '#a382ba',
    500: '#7b509d',
    950: '#000000',
  },
}
SCSS
$custom: #7b509d;
$custom-light: #a382ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7b509d",
  "rgb": {
    "r": 123,
    "g": 80,
    "b": 157
  },
  "hsl": {
    "h": 273.506,
    "s": 32.489,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51211,
    "c": 0.12532,
    "h": 308.4
  },
  "luminance": 0.12383
}

Semantic roles & 50–950 ramp

primary
#7B509D
secondary
#A2B990
accent
#C95F8E
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7B509D

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

Preview Lab → · Contrast checker → · Palette generator →

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