#7B2CA0#7B2CA0

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

Color values

HEX#7B2CA0
RGBrgb(123, 44, 160)
HSLhsl(281, 57%, 40%)
HSVhsv(281, 73%, 63%)
CMYKcmyk(23.1%, 72.5%, 0%, 37.3%)
CIE-LABlab(35.10, 52.38, -47.69)
CIE-LCHlch(35.10, 70.84, 317.68°)
OKLaboklab(46.38% 0.124 -0.1347)
OKLCHoklch(46.38% 0.183 312.6)
XYZxyz(15.4131, 8.5508, 34.0894)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CA0 #51A02C
analogous
#412CA0 #7B2CA0 #A02C8B
triadic
#7B2CA0 #A07B2C #2CA07B
tetradic
#7B2CA0 #A0412C #51A02C #2C8BA0
square
#7B2CA0 #A0412C #51A02C #2C8BA0
split-complementary
#7B2CA0 #8BA02C #2CA041
monochromatic
#311240 #561F70 #7B2CA0 #9E3FCA #B66FD7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B2CA0#FFFFFF#000000##FFFFFF
##7B2CA01.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)
#004FA3
Deuteranopia (green-blind)
#20549D
Tritanopia (blue-blind)
#774563
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2ca0;
/* rgb */ color: rgb(123, 44, 160);
/* oklch */ color: oklch(46.4% 0.183 312.6);
Tailwind
colors: {
  custom: {
    50: '#a56dbd',
    500: '#7b2ca0',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ca0;
$custom-light: #a56dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ca0",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 160
  },
  "hsl": {
    "h": 280.862,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.46375,
    "c": 0.18305,
    "h": 312.6
  },
  "luminance": 0.0855
}

Semantic roles & 50–950 ramp

primary
#7B2CA0
secondary
#84BF69
accent
#E04878
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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