#7B4BBB#7B4BBB

#7B4BBB is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.3% C 0.170 H 300.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7B4BBB
RGBrgb(123, 75, 187)
HSLhsl(266, 45%, 51%)
HSVhsv(266, 60%, 73%)
CMYKcmyk(34.2%, 59.9%, 0%, 26.7%)
CIE-LABlab(42.51, 43.47, -51.81)
CIE-LCHlch(42.51, 67.63, 310.00°)
OKLaboklab(52.29% 0.086 -0.1469)
OKLCHoklch(52.29% 0.17 300.3)
XYZxyz(19.6519, 12.8308, 48.4453)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4BBB #8BBB4B
analogous
#4B53BB #7B4BBB #B34BBB
triadic
#7B4BBB #BB7B4B #4BBB7B
tetradic
#7B4BBB #BB4B53 #8BBB4B #4BBBB3
square
#7B4BBB #BB4B53 #8BBB4B #4BBBB3
split-complementary
#7B4BBB #BBB34B #53BB4B
monochromatic
#412665 #5E3792 #7B4BBB #9C77CC #BCA4DD

Accessibility & contrast

On white

5.89
#7B4BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7B4BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4BBB
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4BBB#FFFFFF#000000##FFFFFF
##7B4BBB1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0864BF
Deuteranopia (green-blind)
#2764B8
Tritanopia (blue-blind)
#6E627C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4bbb;
/* rgb */ color: rgb(123, 75, 187);
/* oklch */ color: oklch(52.3% 0.170 300.3);
Tailwind
colors: {
  custom: {
    50: '#a57fd0',
    500: '#7b4bbb',
    950: '#000000',
  },
}
SCSS
$custom: #7b4bbb;
$custom-light: #a57fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4bbb",
  "rgb": {
    "r": 123,
    "g": 75,
    "b": 187
  },
  "hsl": {
    "h": 265.714,
    "s": 45.161,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52292,
    "c": 0.17025,
    "h": 300.3
  },
  "luminance": 0.12831
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B4BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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