#7B2D9B#7B2D9B

#7B2D9B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.177 H 314.2°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7B2D9B
RGBrgb(123, 45, 155)
HSLhsl(283, 55%, 39%)
HSVhsv(283, 71%, 61%)
CMYKcmyk(20.6%, 71%, 0%, 39.2%)
CIE-LABlab(34.91, 50.88, -44.98)
CIE-LCHlch(34.91, 67.91, 318.53°)
OKLaboklab(46.13% 0.1235 -0.1267)
OKLCHoklch(46.13% 0.177 314.2)
XYZxyz(15.0222, 8.4548, 31.8446)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2D9B #4D9B2D
analogous
#442D9B #7B2D9B #9B2D84
triadic
#7B2D9B #9B7B2D #2D9B7B
tetradic
#7B2D9B #9B442D #4D9B2D #2D849B
square
#7B2D9B #9B442D #4D9B2D #2D849B
split-complementary
#7B2D9B #849B2D #2D9B44
monochromatic
#30113C #551F6C #7B2D9B #9F3EC7 #B76ED5

Accessibility & contrast

On white

7.80
#7B2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7B2D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2D9B
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2D9B#FFFFFF#000000##FFFFFF
##7B2D9B1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#275499
Tritanopia (blue-blind)
#784461
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b2d9b;
/* rgb */ color: rgb(123, 45, 155);
/* oklch */ color: oklch(46.1% 0.177 314.2);
Tailwind
colors: {
  custom: {
    50: '#a56db9',
    500: '#7b2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #7b2d9b;
$custom-light: #a56db9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2d9b",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 282.545,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46129,
    "c": 0.17692,
    "h": 314.2
  },
  "luminance": 0.08454
}

Semantic roles & 50–950 ramp

primary
#7B2D9B
secondary
#80BC68
accent
#DE4975
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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