#7B4ABC#7B4ABC

#7B4ABC is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.2% C 0.173 H 300.3°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7B4ABC
RGBrgb(123, 74, 188)
HSLhsl(266, 46%, 51%)
HSVhsv(266, 61%, 74%)
CMYKcmyk(34.6%, 60.6%, 0%, 26.3%)
CIE-LABlab(42.37, 44.28, -52.62)
CIE-LCHlch(42.37, 68.77, 310.08°)
OKLaboklab(52.21% 0.0872 -0.1493)
OKLCHoklch(52.21% 0.173 300.3)
XYZxyz(19.6921, 12.7392, 48.9887)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4ABC #8BBC4A
analogous
#4A52BC #7B4ABC #B44ABC
triadic
#7B4ABC #BC7B4A #4ABC7B
tetradic
#7B4ABC #BC4A52 #8BBC4A #4ABCB4
square
#7B4ABC #BC4A52 #8BBC4A #4ABCB4
split-complementary
#7B4ABC #BCB44A #52BC4A
monochromatic
#412666 #5E3693 #7B4ABC #9C77CD #BCA3DD

Accessibility & contrast

On white

5.92
#7B4ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7B4ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4ABC
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4ABC#FFFFFF#000000##FFFFFF
##7B4ABC1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C0
Deuteranopia (green-blind)
#2363B9
Tritanopia (blue-blind)
#6D627C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4abc;
/* rgb */ color: rgb(123, 74, 188);
/* oklch */ color: oklch(52.2% 0.173 300.3);
Tailwind
colors: {
  custom: {
    50: '#a57fd1',
    500: '#7b4abc',
    950: '#000000',
  },
}
SCSS
$custom: #7b4abc;
$custom-light: #a57fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4abc",
  "rgb": {
    "r": 123,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 265.789,
    "s": 45.968,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52211,
    "c": 0.17291,
    "h": 300.3
  },
  "luminance": 0.12739
}

Semantic roles & 50–950 ramp

primary
#7B4ABC
secondary
#B4CA98
accent
#D6529D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7B4ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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