#7B5DB3#7B5DB3

#7B5DB3 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 54.7% C 0.132 H 298.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7B5DB3
RGBrgb(123, 93, 179)
HSLhsl(261, 36%, 53%)
HSVhsv(261, 48%, 70%)
CMYKcmyk(31.3%, 48%, 0%, 29.8%)
CIE-LABlab(46.03, 31.08, -41.49)
CIE-LCHlch(46.03, 51.84, 306.83°)
OKLaboklab(54.75% 0.0621 -0.1167)
OKLCHoklch(54.75% 0.132 298)
XYZxyz(20.2175, 15.2941, 44.5260)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5DB3 #95B35D
analogous
#5D6AB3 #7B5DB3 #A65DB3
triadic
#7B5DB3 #B37B5D #5DB37B
tetradic
#7B5DB3 #B35D6A #95B35D #5DB3A6
square
#7B5DB3 #B35D6A #95B35D #5DB3A6
split-complementary
#7B5DB3 #B3A65D #6AB35D
monochromatic
#433066 #5E438F #7B5DB3 #9D87C7 #BFB0DA

Accessibility & contrast

On white

5.17
#7B5DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7B5DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5DB3
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5DB3#FFFFFF#000000##FFFFFF
##7B5DB31.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416DB6
Deuteranopia (green-blind)
#486CB1
Tritanopia (blue-blind)
#6F6D7F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7b5db3;
/* rgb */ color: rgb(123, 93, 179);
/* oklch */ color: oklch(54.7% 0.132 298.0);
Tailwind
colors: {
  custom: {
    50: '#a48bca',
    500: '#7b5db3',
    950: '#000000',
  },
}
SCSS
$custom: #7b5db3;
$custom-light: #a48bca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5db3",
  "rgb": {
    "r": 123,
    "g": 93,
    "b": 179
  },
  "hsl": {
    "h": 260.93,
    "s": 36.134,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54746,
    "c": 0.13219,
    "h": 298
  },
  "luminance": 0.15294
}

Semantic roles & 50–950 ramp

primary
#7B5DB3
secondary
#BBC8A3
accent
#CC5CA5
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7B5DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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