#7B2FA1#7B2FA1

#7B2FA1 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.180 H 312.0°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7B2FA1
RGBrgb(123, 47, 161)
HSLhsl(280, 55%, 41%)
HSVhsv(280, 71%, 63%)
CMYKcmyk(23.6%, 70.8%, 0%, 36.9%)
CIE-LABlab(35.63, 51.31, -47.45)
CIE-LCHlch(35.63, 69.89, 317.24°)
OKLaboklab(46.77% 0.1207 -0.134)
OKLCHoklch(46.77% 0.18 312)
XYZxyz(15.6167, 8.8176, 34.5906)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FA1 #55A12F
analogous
#422FA1 #7B2FA1 #A12F8E
triadic
#7B2FA1 #A17B2F #2FA17B
tetradic
#7B2FA1 #A1422F #55A12F #2F8EA1
square
#7B2FA1 #A1422F #55A12F #2F8EA1
split-complementary
#7B2FA1 #8EA12F #2FA142
monochromatic
#331342 #572172 #7B2FA1 #9D45C9 #B674D6

Accessibility & contrast

On white

7.60
#7B2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7B2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FA1
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FA1#FFFFFF#000000##FFFFFF
##7B2FA11.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#22559E
Tritanopia (blue-blind)
#764765
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2fa1;
/* rgb */ color: rgb(123, 47, 161);
/* oklch */ color: oklch(46.8% 0.180 312.0);
Tailwind
colors: {
  custom: {
    50: '#a56ebd',
    500: '#7b2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fa1;
$custom-light: #a56ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fa1",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 280,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46772,
    "c": 0.18032,
    "h": 312
  },
  "luminance": 0.08817
}

Semantic roles & 50–950 ramp

primary
#7B2FA1
secondary
#88BE6E
accent
#DE4A7B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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