#7B4DB2#7B4DB2

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

Color values

HEX#7B4DB2
RGBrgb(123, 77, 178)
HSLhsl(267, 40%, 50%)
HSVhsv(267, 57%, 70%)
CMYKcmyk(30.9%, 56.7%, 0%, 30.2%)
CIE-LABlab(42.36, 40.07, -46.77)
CIE-LCHlch(42.36, 61.59, 310.59°)
OKLaboklab(52% 0.0835 -0.1321)
OKLCHoklch(52% 0.156 302.3)
XYZxyz(18.8563, 12.7330, 43.5752)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4DB2 #84B24D
analogous
#4D51B2 #7B4DB2 #AE4DB2
triadic
#7B4DB2 #B27B4D #4DB27B
tetradic
#7B4DB2 #B24D51 #84B24D #4DB2AE
square
#7B4DB2 #B24D51 #84B24D #4DB2AE
split-complementary
#7B4DB2 #B2AE4D #51B24D
monochromatic
#40285D #5D3B87 #7B4DB2 #9B78C4 #BAA2D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B4DB2#FFFFFF#000000##FFFFFF
##7B4DB21.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)
#2363B5
Deuteranopia (green-blind)
#3564B0
Tritanopia (blue-blind)
#706178
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4db2;
/* rgb */ color: rgb(123, 77, 178);
/* oklch */ color: oklch(52.0% 0.156 302.3);
Tailwind
colors: {
  custom: {
    50: '#a480c9',
    500: '#7b4db2',
    950: '#000000',
  },
}
SCSS
$custom: #7b4db2;
$custom-light: #a480c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4db2",
  "rgb": {
    "r": 123,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 267.327,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.52,
    "c": 0.15631,
    "h": 302.3
  },
  "luminance": 0.12733
}

Semantic roles & 50–950 ramp

primary
#7B4DB2
secondary
#AFC497
accent
#CF5899
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7B4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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