#7B4DC7#7B4DC7

#7B4DC7 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.4% C 0.182 H 297.2°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#7B4DC7
RGBrgb(123, 77, 199)
HSLhsl(263, 52%, 54%)
HSVhsv(263, 61%, 78%)
CMYKcmyk(38.2%, 61.3%, 0%, 22%)
CIE-LABlab(43.71, 45.49, -56.85)
CIE-LCHlch(43.71, 72.81, 308.67°)
OKLaboklab(53.43% 0.0832 -0.1617)
OKLCHoklch(53.43% 0.182 297.2)
XYZxyz(21.1284, 13.6419, 55.5417)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4DC7 #99C74D
analogous
#4D5CC7 #7B4DC7 #B84DC7
triadic
#7B4DC7 #C77B4D #4DC77B
tetradic
#7B4DC7 #C74D5C #99C74D #4DC7B8
square
#7B4DC7 #C74D5C #99C74D #4DC7B8
split-complementary
#7B4DC7 #C7B84D #5CC74D
monochromatic
#432575 #5E33A3 #7B4DC7 #9E7CD6 #C0AAE4

Accessibility & contrast

On white

5.63
#7B4DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#7B4DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4DC7
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4DC7#FFFFFF#000000##FFFFFF
##7B4DC71.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#1366C4
Tritanopia (blue-blind)
#696883
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7b4dc7;
/* rgb */ color: rgb(123, 77, 199);
/* oklch */ color: oklch(53.4% 0.182 297.2);
Tailwind
colors: {
  custom: {
    50: '#a681d9',
    500: '#7b4dc7',
    950: '#000000',
  },
}
SCSS
$custom: #7b4dc7;
$custom-light: #a681d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4dc7",
  "rgb": {
    "r": 123,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 262.623,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53426,
    "c": 0.18185,
    "h": 297.2
  },
  "luminance": 0.13642
}

Semantic roles & 50–950 ramp

primary
#7B4DC7
secondary
#BED29E
accent
#DC4CA6
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B4DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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