#7B5DCD#7B5DCD

#7B5DCD is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.4% C 0.167 H 292.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7B5DCD
RGBrgb(123, 93, 205)
HSLhsl(256, 53%, 58%)
HSVhsv(256, 55%, 80%)
CMYKcmyk(40%, 54.6%, 0%, 19.6%)
CIE-LABlab(47.56, 38.08, -54.12)
CIE-LCHlch(47.56, 66.17, 305.13°)
OKLaboklab(56.37% 0.064 -0.1537)
OKLCHoklch(56.37% 0.167 292.6)
XYZxyz(23.0992, 16.4468, 59.7033)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5DCD #AFCD5D
analogous
#5D77CD #7B5DCD #B35DCD
triadic
#7B5DCD #CD7B5D #5DCD7B
tetradic
#7B5DCD #CD5D77 #AFCD5D #5DCDB3
square
#7B5DCD #CD5D77 #AFCD5D #5DCDB3
split-complementary
#7B5DCD #CDB35D #77CD5D
monochromatic
#422986 #5938B5 #7B5DCD #A18CDB #C7BBEA

Accessibility & contrast

On white

4.90
#7B5DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7B5DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5DCD
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5DCD#FFFFFF#000000##FFFFFF
##7B5DCD1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2772D1
Deuteranopia (green-blind)
#2E6FCA
Tritanopia (blue-blind)
#65758C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7b5dcd;
/* rgb */ color: rgb(123, 93, 205);
/* oklch */ color: oklch(56.4% 0.167 292.6);
Tailwind
colors: {
  custom: {
    50: '#a68cdd',
    500: '#7b5dcd',
    950: '#000000',
  },
}
SCSS
$custom: #7b5dcd;
$custom-light: #a68cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5dcd",
  "rgb": {
    "r": 123,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 256.071,
    "s": 52.83,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56369,
    "c": 0.1665,
    "h": 292.6
  },
  "luminance": 0.16447
}

Semantic roles & 50–950 ramp

primary
#7B5DCD
secondary
#CDD9AD
accent
#DC4CB5
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7B5DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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