#7B4DC5#7B4DC5

#7B4DC5 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.3% C 0.179 H 297.6°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#7B4DC5
RGBrgb(123, 77, 197)
HSLhsl(263, 51%, 54%)
HSVhsv(263, 61%, 77%)
CMYKcmyk(37.6%, 60.9%, 0%, 22.7%)
CIE-LABlab(43.58, 44.97, -55.90)
CIE-LCHlch(43.58, 71.75, 308.81°)
OKLaboklab(53.29% 0.0833 -0.159)
OKLCHoklch(53.29% 0.179 297.6)
XYZxyz(20.8978, 13.5496, 54.3268)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4DC5 #97C54D
analogous
#4D5BC5 #7B4DC5 #B74DC5
triadic
#7B4DC5 #C57B4D #4DC57B
tetradic
#7B4DC5 #C54D5B #97C54D #4DC5B7
square
#7B4DC5 #C54D5B #97C54D #4DC5B7
split-complementary
#7B4DC5 #C5B74D #5BC54D
monochromatic
#432572 #5E34A0 #7B4DC5 #9D7BD4 #BFA9E3

Accessibility & contrast

On white

5.66
#7B4DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#7B4DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4DC5
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4DC5#FFFFFF#000000##FFFFFF
##7B4DC51.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#1866C2
Tritanopia (blue-blind)
#6A6782
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7b4dc5;
/* rgb */ color: rgb(123, 77, 197);
/* oklch */ color: oklch(53.3% 0.179 297.6);
Tailwind
colors: {
  custom: {
    50: '#a681d7',
    500: '#7b4dc5',
    950: '#000000',
  },
}
SCSS
$custom: #7b4dc5;
$custom-light: #a681d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4dc5",
  "rgb": {
    "r": 123,
    "g": 77,
    "b": 197
  },
  "hsl": {
    "h": 263,
    "s": 50.847,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53285,
    "c": 0.17945,
    "h": 297.6
  },
  "luminance": 0.1355
}

Semantic roles & 50–950 ramp

primary
#7B4DC5
secondary
#BDD19D
accent
#DA4DA4
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7B4DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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