#7B4ABB#7B4ABB

#7B4ABB is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.1% C 0.172 H 300.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7B4ABB
RGBrgb(123, 74, 187)
HSLhsl(266, 45%, 51%)
HSVhsv(266, 60%, 73%)
CMYKcmyk(34.2%, 60.4%, 0%, 26.7%)
CIE-LABlab(42.30, 44.02, -52.14)
CIE-LCHlch(42.30, 68.24, 310.17°)
OKLaboklab(52.14% 0.0872 -0.1479)
OKLCHoklch(52.14% 0.172 300.5)
XYZxyz(19.5846, 12.6962, 48.4229)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4ABB #8ABB4A
analogous
#4A51BB #7B4ABB #B44ABB
triadic
#7B4ABB #BB7B4A #4ABB7B
tetradic
#7B4ABB #BB4A51 #8ABB4A #4ABBB4
square
#7B4ABB #BB4A51 #8ABB4A #4ABBB4
split-complementary
#7B4ABB #BBB44A #51BB4A
monochromatic
#412665 #5E3791 #7B4ABB #9B76CC #BCA3DC

Accessibility & contrast

On white

5.93
#7B4ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7B4ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4ABB
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4ABB#FFFFFF#000000##FFFFFF
##7B4ABB1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0163BF
Deuteranopia (green-blind)
#2563B8
Tritanopia (blue-blind)
#6E627B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4abb;
/* rgb */ color: rgb(123, 74, 187);
/* oklch */ color: oklch(52.1% 0.172 300.5);
Tailwind
colors: {
  custom: {
    50: '#a57fd0',
    500: '#7b4abb',
    950: '#000000',
  },
}
SCSS
$custom: #7b4abb;
$custom-light: #a57fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4abb",
  "rgb": {
    "r": 123,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 266.018,
    "s": 45.382,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52142,
    "c": 0.17171,
    "h": 300.5
  },
  "luminance": 0.12696
}

Semantic roles & 50–950 ramp

primary
#7B4ABB
secondary
#B4C997
accent
#D5539D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7B4ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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