#7B2DB1#7B2DB1

#7B2DB1 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.7% C 0.199 H 307.3°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7B2DB1
RGBrgb(123, 45, 177)
HSLhsl(275, 59%, 44%)
HSVhsv(275, 75%, 69%)
CMYKcmyk(30.5%, 74.6%, 0%, 30.6%)
CIE-LABlab(36.48, 55.71, -55.65)
CIE-LCHlch(36.48, 78.74, 315.03°)
OKLaboklab(47.74% 0.1202 -0.1581)
OKLCHoklch(47.74% 0.199 307.3)
XYZxyz(17.0409, 9.2623, 42.4765)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DB1 #63B12D
analogous
#392DB1 #7B2DB1 #B12DA5
triadic
#7B2DB1 #B17B2D #2DB17B
tetradic
#7B2DB1 #B1392D #63B12D #2DA5B1
square
#7B2DB1 #B1392D #63B12D #2DA5B1
split-complementary
#7B2DB1 #A5B12D #2DB139
monochromatic
#37144F #592180 #7B2DB1 #9A4AD1 #B57BDD

Accessibility & contrast

On white

7.36
#7B2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7B2DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2DB1
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DB1#FFFFFF#000000##FFFFFF
##7B2DB11.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#724D6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b2db1;
/* rgb */ color: rgb(123, 45, 177);
/* oklch */ color: oklch(47.7% 0.199 307.3);
Tailwind
colors: {
  custom: {
    50: '#a66ec9',
    500: '#7b2db1',
    950: '#000000',
  },
}
SCSS
$custom: #7b2db1;
$custom-light: #a66ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2db1",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 275.455,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47742,
    "c": 0.1986,
    "h": 307.3
  },
  "luminance": 0.09262
}

Semantic roles & 50–950 ramp

primary
#7B2DB1
secondary
#95C674
accent
#E34586
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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