#7B2B9D#7B2B9D

#7B2B9D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.181 H 313.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7B2B9D
RGBrgb(123, 43, 157)
HSLhsl(282, 57%, 39%)
HSVhsv(282, 73%, 62%)
CMYKcmyk(21.7%, 72.6%, 0%, 38.4%)
CIE-LABlab(34.75, 52.16, -46.45)
CIE-LCHlch(34.75, 69.84, 318.31°)
OKLaboklab(46.06% 0.1254 -0.131)
OKLCHoklch(46.06% 0.181 313.7)
XYZxyz(15.1170, 8.3735, 32.7117)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2B9D #4D9D2B
analogous
#422B9D #7B2B9D #9D2B86
triadic
#7B2B9D #9D7B2B #2B9D7B
tetradic
#7B2B9D #9D422B #4D9D2B #2B869D
square
#7B2B9D #9D422B #4D9D2B #2B869D
split-complementary
#7B2B9D #869D2B #2B9D42
monochromatic
#30113D #551E6D #7B2B9D #9F3CCA #B76CD7

Accessibility & contrast

On white

7.85
#7B2B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7B2B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2B9D
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2B9D#FFFFFF#000000##FFFFFF
##7B2B9D1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#23549A
Tritanopia (blue-blind)
#784361
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b2b9d;
/* rgb */ color: rgb(123, 43, 157);
/* oklch */ color: oklch(46.1% 0.181 313.7);
Tailwind
colors: {
  custom: {
    50: '#a56cbb',
    500: '#7b2b9d',
    950: '#000000',
  },
}
SCSS
$custom: #7b2b9d;
$custom-light: #a56cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2b9d",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 282.105,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46056,
    "c": 0.18135,
    "h": 313.7
  },
  "luminance": 0.08373
}

Semantic roles & 50–950 ramp

primary
#7B2B9D
secondary
#80BD66
accent
#E04875
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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