#7B5DCB#7B5DCB

#7B5DCB is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.2% C 0.164 H 292.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7B5DCB
RGBrgb(123, 93, 203)
HSLhsl(256, 51%, 58%)
HSVhsv(256, 54%, 80%)
CMYKcmyk(39.4%, 54.2%, 0%, 20.4%)
CIE-LABlab(47.43, 37.53, -53.17)
CIE-LCHlch(47.43, 65.08, 305.22°)
OKLaboklab(56.24% 0.0639 -0.1509)
OKLCHoklch(56.24% 0.164 292.9)
XYZxyz(22.8593, 16.3509, 58.4400)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5DCB #ADCB5D
analogous
#5D76CB #7B5DCB #B25DCB
triadic
#7B5DCB #CB7B5D #5DCB7B
tetradic
#7B5DCB #CB5D76 #ADCB5D #5DCBB2
square
#7B5DCB #CB5D76 #ADCB5D #5DCBB2
split-complementary
#7B5DCB #CBB25D #76CB5D
monochromatic
#432A83 #5A39B2 #7B5DCB #A18BDA #C6BAE9

Accessibility & contrast

On white

4.92
#7B5DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7B5DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5DCB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5DCB#FFFFFF#000000##FFFFFF
##7B5DCB1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A72CF
Deuteranopia (green-blind)
#316EC9
Tritanopia (blue-blind)
#66748B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7b5dcb;
/* rgb */ color: rgb(123, 93, 203);
/* oklch */ color: oklch(56.2% 0.164 292.9);
Tailwind
colors: {
  custom: {
    50: '#a68cdb',
    500: '#7b5dcb',
    950: '#000000',
  },
}
SCSS
$custom: #7b5dcb;
$custom-light: #a68cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5dcb",
  "rgb": {
    "r": 123,
    "g": 93,
    "b": 203
  },
  "hsl": {
    "h": 256.364,
    "s": 51.402,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56238,
    "c": 0.1639,
    "h": 292.9
  },
  "luminance": 0.16351
}

Semantic roles & 50–950 ramp

primary
#7B5DCB
secondary
#CCD8AC
accent
#DB4DB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7B5DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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