#7B4BAB#7B4BAB

#7B4BAB is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.2% C 0.151 H 304.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7B4BAB
RGBrgb(123, 75, 171)
HSLhsl(270, 39%, 48%)
HSVhsv(270, 56%, 67%)
CMYKcmyk(28.1%, 56.1%, 0%, 32.9%)
CIE-LABlab(41.51, 39.44, -44.00)
CIE-LCHlch(41.51, 59.09, 311.87°)
OKLaboklab(51.24% 0.0859 -0.124)
OKLCHoklch(51.24% 0.151 304.7)
XYZxyz(18.0335, 12.1835, 39.9218)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4BAB #7BAB4B
analogous
#4B4BAB #7B4BAB #AB4BAB
triadic
#7B4BAB #AB7B4B #4BAB7B
tetradic
#7B4BAB #AB4B4B #7BAB4B #4BABAB
square
#7B4BAB #AB4B4B #7BAB4B #4BABAB
split-complementary
#7B4BAB #ABAB4B #4BAB4B
monochromatic
#3E2656 #5C3880 #7B4BAB #9A72C1 #B89DD4

Accessibility & contrast

On white

6.11
#7B4BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7B4BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4BAB
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4BAB#FFFFFF#000000##FFFFFF
##7B4BAB1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AE
Deuteranopia (green-blind)
#3962A9
Tritanopia (blue-blind)
#735D74
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7b4bab;
/* rgb */ color: rgb(123, 75, 171);
/* oklch */ color: oklch(51.2% 0.151 304.7);
Tailwind
colors: {
  custom: {
    50: '#a47fc4',
    500: '#7b4bab',
    950: '#000000',
  },
}
SCSS
$custom: #7b4bab;
$custom-light: #a47fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4bab",
  "rgb": {
    "r": 123,
    "g": 75,
    "b": 171
  },
  "hsl": {
    "h": 270,
    "s": 39.024,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51237,
    "c": 0.15087,
    "h": 304.7
  },
  "luminance": 0.12183
}

Semantic roles & 50–950 ramp

primary
#7B4BAB
secondary
#A9C091
accent
#CF5994
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7B4BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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