#7B4DBA#7B4DBA

#7B4DBA is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.5% C 0.166 H 300.2°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7B4DBA
RGBrgb(123, 77, 186)
HSLhsl(265, 44%, 52%)
HSVhsv(265, 59%, 73%)
CMYKcmyk(33.9%, 58.6%, 0%, 27.1%)
CIE-LABlab(42.86, 42.11, -50.66)
CIE-LCHlch(42.86, 65.88, 309.74°)
OKLaboklab(52.53% 0.0836 -0.1435)
OKLCHoklch(52.53% 0.166 300.2)
XYZxyz(19.6831, 13.0637, 47.9294)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4DBA #8CBA4D
analogous
#4D56BA #7B4DBA #B24DBA
triadic
#7B4DBA #BA7B4D #4DBA7B
tetradic
#7B4DBA #BA4D56 #8CBA4D #4DBAB2
square
#7B4DBA #BA4D56 #8CBA4D #4DBAB2
split-complementary
#7B4DBA #BAB24D #56BA4D
monochromatic
#412765 #5E3891 #7B4DBA #9C79CB #BCA5DC

Accessibility & contrast

On white

5.81
#7B4DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7B4DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4DBA
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4DBA#FFFFFF#000000##FFFFFF
##7B4DBA1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1565BE
Deuteranopia (green-blind)
#2C64B8
Tritanopia (blue-blind)
#6E637C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b4dba;
/* rgb */ color: rgb(123, 77, 186);
/* oklch */ color: oklch(52.5% 0.166 300.2);
Tailwind
colors: {
  custom: {
    50: '#a581cf',
    500: '#7b4dba',
    950: '#000000',
  },
}
SCSS
$custom: #7b4dba;
$custom-light: #a581cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4dba",
  "rgb": {
    "r": 123,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 265.321,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52528,
    "c": 0.1661,
    "h": 300.2
  },
  "luminance": 0.13064
}

Semantic roles & 50–950 ramp

primary
#7B4DBA
secondary
#B5C999
accent
#D4549E
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7B4DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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