#7B2CA2#7B2CA2

#7B2CA2 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.185 H 312.0°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7B2CA2
RGBrgb(123, 44, 162)
HSLhsl(280, 57%, 40%)
HSVhsv(280, 73%, 64%)
CMYKcmyk(24.1%, 72.8%, 0%, 36.5%)
CIE-LABlab(35.24, 52.81, -48.67)
CIE-LCHlch(35.24, 71.82, 317.33°)
OKLaboklab(46.52% 0.1237 -0.1376)
OKLCHoklch(46.52% 0.185 312)
XYZxyz(15.5894, 8.6214, 35.0183)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CA2 #53A22C
analogous
#402CA2 #7B2CA2 #A22C8E
triadic
#7B2CA2 #A27B2C #2CA27B
tetradic
#7B2CA2 #A2402C #53A22C #2C8EA2
square
#7B2CA2 #A2402C #53A22C #2C8EA2
split-complementary
#7B2CA2 #8EA22C #2CA240
monochromatic
#321242 #561F72 #7B2CA2 #9D40CB #B670D8

Accessibility & contrast

On white

7.71
#7B2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7B2CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2CA2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CA2#FFFFFF#000000##FFFFFF
##7B2CA21.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#1D549F
Tritanopia (blue-blind)
#764664
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2ca2;
/* rgb */ color: rgb(123, 44, 162);
/* oklch */ color: oklch(46.5% 0.185 312.0);
Tailwind
colors: {
  custom: {
    50: '#a56dbe',
    500: '#7b2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ca2;
$custom-light: #a56dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ca2",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 280.169,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46519,
    "c": 0.185,
    "h": 312
  },
  "luminance": 0.08621
}

Semantic roles & 50–950 ramp

primary
#7B2CA2
secondary
#86BF6A
accent
#E1477A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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