#7B5CD2#7B5CD2

#7B5CD2 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.5% C 0.174 H 292.0°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7B5CD2
RGBrgb(123, 92, 210)
HSLhsl(256, 57%, 59%)
HSVhsv(256, 56%, 82%)
CMYKcmyk(41.4%, 56.2%, 0%, 17.6%)
CIE-LABlab(47.65, 40.04, -56.84)
CIE-LCHlch(47.65, 69.52, 305.16°)
OKLaboklab(56.54% 0.0653 -0.1617)
OKLCHoklch(56.54% 0.174 292)
XYZxyz(23.6252, 16.5177, 62.9037)
Luminance0.1652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CD2 #B3D25C
analogous
#5C78D2 #7B5CD2 #B65CD2
triadic
#7B5CD2 #D27B5C #5CD27B
tetradic
#7B5CD2 #D25C78 #B3D25C #5CD2B6
square
#7B5CD2 #D25C78 #B3D25C #5CD2B6
split-complementary
#7B5CD2 #D2B65C #78D25C
monochromatic
#42278D #5834BD #7B5CD2 #A28CDF #C9BCEC

Accessibility & contrast

On white

4.88
#7B5CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7B5CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5CD2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5CD2#FFFFFF#000000##FFFFFF
##7B5CD21.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B73D6
Deuteranopia (green-blind)
#246FCF
Tritanopia (blue-blind)
#63758E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7b5cd2;
/* rgb */ color: rgb(123, 92, 210);
/* oklch */ color: oklch(56.5% 0.174 292.0);
Tailwind
colors: {
  custom: {
    50: '#a68be0',
    500: '#7b5cd2',
    950: '#000000',
  },
}
SCSS
$custom: #7b5cd2;
$custom-light: #a68be0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5cd2",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 255.763,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56538,
    "c": 0.17438,
    "h": 292
  },
  "luminance": 0.16518
}

Semantic roles & 50–950 ramp

primary
#7B5CD2
secondary
#D0DCAE
accent
#E048B8
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7B5CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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