#7B4DCA#7B4DCA

#7B4DCA is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.6% C 0.185 H 296.6°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7B4DCA
RGBrgb(123, 77, 202)
HSLhsl(262, 54%, 55%)
HSVhsv(262, 62%, 79%)
CMYKcmyk(39.1%, 61.9%, 0%, 20.8%)
CIE-LABlab(43.92, 46.28, -58.25)
CIE-LCHlch(43.92, 74.40, 308.47°)
OKLaboklab(53.64% 0.083 -0.1659)
OKLCHoklch(53.64% 0.185 296.6)
XYZxyz(21.4802, 13.7826, 57.3943)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4DCA #9CCA4D
analogous
#4D5ECA #7B4DCA #BA4DCA
triadic
#7B4DCA #CA7B4D #4DCA7B
tetradic
#7B4DCA #CA4D5E #9CCA4D #4DCABA
square
#7B4DCA #CA4D5E #9CCA4D #4DCABA
split-complementary
#7B4DCA #CABA4D #5ECA4D
monochromatic
#432479 #5D32A8 #7B4DCA #9E7CD8 #C1ABE6

Accessibility & contrast

On white

5.59
#7B4DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#7B4DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4DCA
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4DCA#FFFFFF#000000##FFFFFF
##7B4DCA1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#0766C7
Tritanopia (blue-blind)
#686984
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7b4dca;
/* rgb */ color: rgb(123, 77, 202);
/* oklch */ color: oklch(53.6% 0.185 296.6);
Tailwind
colors: {
  custom: {
    50: '#a681db',
    500: '#7b4dca',
    950: '#000000',
  },
}
SCSS
$custom: #7b4dca;
$custom-light: #a681db;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4dca",
  "rgb": {
    "r": 123,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 262.08,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5364,
    "c": 0.18546,
    "h": 296.6
  },
  "luminance": 0.13783
}

Semantic roles & 50–950 ramp

primary
#7B4DCA
secondary
#C0D49F
accent
#DD4AA7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B4DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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