#7B4DC8#7B4DC8

#7B4DC8 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.5% C 0.183 H 297.0°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#7B4DC8
RGBrgb(123, 77, 200)
HSLhsl(262, 53%, 54%)
HSVhsv(262, 62%, 78%)
CMYKcmyk(38.5%, 61.5%, 0%, 21.6%)
CIE-LABlab(43.78, 45.76, -57.31)
CIE-LCHlch(43.78, 73.34, 308.60°)
OKLaboklab(53.5% 0.0831 -0.1631)
OKLCHoklch(53.5% 0.183 297)
XYZxyz(21.2449, 13.6885, 56.1552)
Luminance0.1369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4DC8 #9AC84D
analogous
#4D5DC8 #7B4DC8 #B94DC8
triadic
#7B4DC8 #C87B4D #4DC87B
tetradic
#7B4DC8 #C84D5D #9AC84D #4DC8B9
square
#7B4DC8 #C84D5D #9AC84D #4DC8B9
split-complementary
#7B4DC8 #C8B94D #5DC84D
monochromatic
#432476 #5E33A5 #7B4DC8 #9E7CD6 #C0ABE5

Accessibility & contrast

On white

5.62
#7B4DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#7B4DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4DC8
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4DC8#FFFFFF#000000##FFFFFF
##7B4DC81.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#0F66C5
Tritanopia (blue-blind)
#686883
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7b4dc8;
/* rgb */ color: rgb(123, 77, 200);
/* oklch */ color: oklch(53.5% 0.183 297.0);
Tailwind
colors: {
  custom: {
    50: '#a681d9',
    500: '#7b4dc8',
    950: '#000000',
  },
}
SCSS
$custom: #7b4dc8;
$custom-light: #a681d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4dc8",
  "rgb": {
    "r": 123,
    "g": 77,
    "b": 200
  },
  "hsl": {
    "h": 262.439,
    "s": 52.79,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53497,
    "c": 0.18306,
    "h": 297
  },
  "luminance": 0.13689
}

Semantic roles & 50–950 ramp

primary
#7B4DC8
secondary
#BFD29E
accent
#DC4CA6
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B4DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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