#7B4CCC#7B4CCC

#7B4CCC is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.6% C 0.189 H 296.3°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#7B4CCC
RGBrgb(123, 76, 204)
HSLhsl(262, 56%, 55%)
HSVhsv(262, 63%, 80%)
CMYKcmyk(39.7%, 62.7%, 0%, 20%)
CIE-LABlab(43.86, 47.35, -59.51)
CIE-LCHlch(43.86, 76.05, 308.51°)
OKLaboklab(53.64% 0.084 -0.1696)
OKLCHoklch(53.64% 0.189 296.3)
XYZxyz(21.6491, 13.7391, 58.6263)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4CCC #9DCC4C
analogous
#4C5DCC #7B4CCC #BB4CCC
triadic
#7B4CCC #CC7B4C #4CCC7B
tetradic
#7B4CCC #CC4C5D #9DCC4C #4CCCBB
square
#7B4CCC #CC4C5D #9DCC4C #4CCCBB
split-complementary
#7B4CCC #CCBB4C #5DCC4C
monochromatic
#43237B #5D31AA #7B4CCC #9E7CDA #C1ABE7

Accessibility & contrast

On white

5.60
#7B4CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#7B4CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4CCC
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4CCC#FFFFFF#000000##FFFFFF
##7B4CCC1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#676985
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7b4ccc;
/* rgb */ color: rgb(123, 76, 204);
/* oklch */ color: oklch(53.6% 0.189 296.3);
Tailwind
colors: {
  custom: {
    50: '#a780dc',
    500: '#7b4ccc',
    950: '#000000',
  },
}
SCSS
$custom: #7b4ccc;
$custom-light: #a780dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4ccc",
  "rgb": {
    "r": 123,
    "g": 76,
    "b": 204
  },
  "hsl": {
    "h": 262.031,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.53638,
    "c": 0.18921,
    "h": 296.3
  },
  "luminance": 0.13739
}

Semantic roles & 50–950 ramp

primary
#7B4CCC
secondary
#C1D59F
accent
#DF49A8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B4CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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