#7B2BA2#7B2BA2

#7B2BA2 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.186 H 312.0°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7B2BA2
RGBrgb(123, 43, 162)
HSLhsl(280, 58%, 40%)
HSVhsv(280, 73%, 64%)
CMYKcmyk(24.1%, 73.5%, 0%, 36.5%)
CIE-LABlab(35.10, 53.23, -48.91)
CIE-LCHlch(35.10, 72.29, 317.42°)
OKLaboklab(46.42% 0.1247 -0.1383)
OKLCHoklch(46.42% 0.186 312)
XYZxyz(15.5526, 8.5478, 35.0060)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2BA2 #52A22B
analogous
#3F2BA2 #7B2BA2 #A22B8E
triadic
#7B2BA2 #A27B2B #2BA27B
tetradic
#7B2BA2 #A23F2B #52A22B #2B8EA2
square
#7B2BA2 #A23F2B #52A22B #2B8EA2
split-complementary
#7B2BA2 #8EA22B #2BA23F
monochromatic
#321141 #561E72 #7B2BA2 #9D3ECC #B66FD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B2BA2#FFFFFF#000000##FFFFFF
##7B2BA21.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)
#004FA5
Deuteranopia (green-blind)
#1B549F
Tritanopia (blue-blind)
#764564
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2ba2;
/* rgb */ color: rgb(123, 43, 162);
/* oklch */ color: oklch(46.4% 0.186 312.0);
Tailwind
colors: {
  custom: {
    50: '#a56cbe',
    500: '#7b2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ba2;
$custom-light: #a56cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ba2",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 280.336,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46415,
    "c": 0.1862,
    "h": 312
  },
  "luminance": 0.08547
}

Semantic roles & 50–950 ramp

primary
#7B2BA2
secondary
#85C069
accent
#E14779
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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