#7B1DBB#7B1DBB

#7B1DBB is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.2% C 0.223 H 305.8°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7B1DBB
RGBrgb(123, 29, 187)
HSLhsl(276, 73%, 42%)
HSVhsv(276, 84%, 73%)
CMYKcmyk(34.2%, 84.5%, 0%, 26.7%)
CIE-LABlab(35.36, 63.49, -63.41)
CIE-LCHlch(35.36, 89.73, 315.04°)
OKLaboklab(47.2% 0.1302 -0.1808)
OKLCHoklch(47.2% 0.223 305.8)
XYZxyz(17.5754, 8.6777, 47.7531)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1DBB #5DBB1D
analogous
#2C1DBB #7B1DBB #BB1DAC
triadic
#7B1DBB #BB7B1D #1DBB7B
tetradic
#7B1DBB #BB2C1D #5DBB1D #1DACBB
square
#7B1DBB #BB2C1D #5DBB1D #1DACBB
split-complementary
#7B1DBB #ACBB1D #1DBB2C
monochromatic
#350D51 #581586 #7B1DBB #9B35E0 #B56AE8

Accessibility & contrast

On white

7.68
#7B1DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7B1DBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1DBB
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1DBB#FFFFFF#000000##FFFFFF
##7B1DBB1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BF
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#6F4A6F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b1dbb;
/* rgb */ color: rgb(123, 29, 187);
/* oklch */ color: oklch(47.2% 0.223 305.8);
Tailwind
colors: {
  custom: {
    50: '#a868d1',
    500: '#7b1dbb',
    950: '#000000',
  },
}
SCSS
$custom: #7b1dbb;
$custom-light: #a868d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1dbb",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 187
  },
  "hsl": {
    "h": 275.696,
    "s": 73.148,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47202,
    "c": 0.22276,
    "h": 305.8
  },
  "luminance": 0.08678
}

Semantic roles & 50–950 ramp

primary
#7B1DBB
secondary
#90CE66
accent
#F03882
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B1DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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