#7B2D9E#7B2D9E

#7B2D9E is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.180 H 313.2°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7B2D9E
RGBrgb(123, 45, 158)
HSLhsl(281, 56%, 40%)
HSVhsv(281, 72%, 62%)
CMYKcmyk(22.2%, 71.5%, 0%, 38%)
CIE-LABlab(35.12, 51.53, -46.47)
CIE-LCHlch(35.12, 69.38, 317.96°)
OKLaboklab(46.34% 0.1231 -0.1311)
OKLCHoklch(46.34% 0.18 313.2)
XYZxyz(15.2772, 8.5568, 33.1880)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2D9E #509E2D
analogous
#432D9E #7B2D9E #9E2D89
triadic
#7B2D9E #9E7B2D #2D9E7B
tetradic
#7B2D9E #9E432D #509E2D #2D899E
square
#7B2D9E #9E432D #509E2D #2D899E
split-complementary
#7B2D9E #899E2D #2D9E43
monochromatic
#31123F #561F6E #7B2D9E #9E40C9 #B66FD6

Accessibility & contrast

On white

7.75
#7B2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7B2D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2D9E
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2D9E#FFFFFF#000000##FFFFFF
##7B2D9E1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#24549B
Tritanopia (blue-blind)
#774562
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2d9e;
/* rgb */ color: rgb(123, 45, 158);
/* oklch */ color: oklch(46.3% 0.180 313.2);
Tailwind
colors: {
  custom: {
    50: '#a56dbb',
    500: '#7b2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #7b2d9e;
$custom-light: #a56dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2d9e",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 281.416,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46339,
    "c": 0.17986,
    "h": 313.2
  },
  "luminance": 0.08556
}

Semantic roles & 50–950 ramp

primary
#7B2D9E
secondary
#83BD69
accent
#DF4977
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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