#7B50A2#7B50A2

#7B50A2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.5% C 0.132 H 306.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7B50A2
RGBrgb(123, 80, 162)
HSLhsl(271, 34%, 47%)
HSVhsv(271, 51%, 64%)
CMYKcmyk(24.1%, 50.6%, 0%, 36.5%)
CIE-LABlab(42.09, 34.38, -37.73)
CIE-LCHlch(42.09, 51.04, 312.34°)
OKLaboklab(51.5% 0.0784 -0.1057)
OKLCHoklch(51.5% 0.132 306.6)
XYZxyz(17.5573, 12.5571, 35.6742)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B50A2 #77A250
analogous
#5250A2 #7B50A2 #A250A0
triadic
#7B50A2 #A27B50 #50A27B
tetradic
#7B50A2 #A25250 #77A250 #50A0A2
square
#7B50A2 #A25250 #77A250 #50A0A2
split-complementary
#7B50A2 #A0A250 #50A252
monochromatic
#3D2850 #5C3C79 #7B50A2 #9975BB #B79ECF

Accessibility & contrast

On white

5.98
#7B50A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7B50A2
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B50A2#FFFFFF#000000##FFFFFF
##7B50A21.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A5
Deuteranopia (green-blind)
#4564A0
Tritanopia (blue-blind)
#755E71
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b50a2;
/* rgb */ color: rgb(123, 80, 162);
/* oklch */ color: oklch(51.5% 0.132 306.6);
Tailwind
colors: {
  custom: {
    50: '#a382be',
    500: '#7b50a2',
    950: '#000000',
  },
}
SCSS
$custom: #7b50a2;
$custom-light: #a382be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b50a2",
  "rgb": {
    "r": 123,
    "g": 80,
    "b": 162
  },
  "hsl": {
    "h": 271.463,
    "s": 33.884,
    "l": 47.451
  },
  "oklch": {
    "l": 0.515,
    "c": 0.13158,
    "h": 306.6
  },
  "luminance": 0.12557
}

Semantic roles & 50–950 ramp

primary
#7B50A2
secondary
#A6BC92
accent
#CA5E91
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7B50A2

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

Preview Lab → · Contrast checker → · Palette generator →

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