#7B2FA0#7B2FA0

#7B2FA0 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.179 H 312.3°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7B2FA0
RGBrgb(123, 47, 160)
HSLhsl(280, 55%, 41%)
HSVhsv(280, 71%, 63%)
CMYKcmyk(23.1%, 70.6%, 0%, 37.3%)
CIE-LABlab(35.56, 51.09, -46.96)
CIE-LCHlch(35.56, 69.39, 317.41°)
OKLaboklab(46.7% 0.1208 -0.1326)
OKLCHoklch(46.7% 0.179 312.3)
XYZxyz(15.5289, 8.7825, 34.1280)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FA0 #54A02F
analogous
#422FA0 #7B2FA0 #A02F8C
triadic
#7B2FA0 #A07B2F #2FA07B
tetradic
#7B2FA0 #A0422F #54A02F #2F8CA0
square
#7B2FA0 #A0422F #54A02F #2F8CA0
split-complementary
#7B2FA0 #8CA02F #2FA042
monochromatic
#321341 #572171 #7B2FA0 #9D44C8 #B673D6

Accessibility & contrast

On white

7.62
#7B2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2FA0
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FA0#FFFFFF#000000##FFFFFF
##7B2FA01.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#23559D
Tritanopia (blue-blind)
#774764
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2fa0;
/* rgb */ color: rgb(123, 47, 160);
/* oklch */ color: oklch(46.7% 0.179 312.3);
Tailwind
colors: {
  custom: {
    50: '#a56ebd',
    500: '#7b2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fa0;
$custom-light: #a56ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fa0",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 280.354,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46701,
    "c": 0.17933,
    "h": 312.3
  },
  "luminance": 0.08782
}

Semantic roles & 50–950 ramp

primary
#7B2FA0
secondary
#87BE6D
accent
#DE4A7A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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