#7B2EA0#7B2EA0

#7B2EA0 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.181 H 312.4°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7B2EA0
RGBrgb(123, 46, 160)
HSLhsl(281, 55%, 40%)
HSVhsv(281, 71%, 63%)
CMYKcmyk(23.1%, 71.2%, 0%, 37.3%)
CIE-LABlab(35.41, 51.53, -47.21)
CIE-LCHlch(35.41, 69.88, 317.51°)
OKLaboklab(46.59% 0.1218 -0.1333)
OKLCHoklch(46.59% 0.181 312.4)
XYZxyz(15.4894, 8.7034, 34.1149)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EA0 #53A02E
analogous
#422EA0 #7B2EA0 #A02E8C
triadic
#7B2EA0 #A07B2E #2EA07B
tetradic
#7B2EA0 #A0422E #53A02E #2E8CA0
square
#7B2EA0 #A0422E #53A02E #2E8CA0
split-complementary
#7B2EA0 #8CA02E #2EA042
monochromatic
#321341 #562070 #7B2EA0 #9D42C9 #B672D6

Accessibility & contrast

On white

7.66
#7B2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7B2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EA0
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EA0#FFFFFF#000000##FFFFFF
##7B2EA01.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#22559D
Tritanopia (blue-blind)
#774664
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2ea0;
/* rgb */ color: rgb(123, 46, 160);
/* oklch */ color: oklch(46.6% 0.181 312.4);
Tailwind
colors: {
  custom: {
    50: '#a56ebd',
    500: '#7b2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ea0;
$custom-light: #a56ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ea0",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 280.526,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4659,
    "c": 0.18058,
    "h": 312.4
  },
  "luminance": 0.08703
}

Semantic roles & 50–950 ramp

primary
#7B2EA0
secondary
#86BE6C
accent
#DF497A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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