#7B2EA1#7B2EA1

#7B2EA1 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.182 H 312.1°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7B2EA1
RGBrgb(123, 46, 161)
HSLhsl(280, 56%, 41%)
HSVhsv(280, 71%, 63%)
CMYKcmyk(23.6%, 71.4%, 0%, 36.9%)
CIE-LABlab(35.48, 51.74, -47.70)
CIE-LCHlch(35.48, 70.37, 317.33°)
OKLaboklab(46.66% 0.1217 -0.1347)
OKLCHoklch(46.66% 0.182 312.1)
XYZxyz(15.5772, 8.7386, 34.5774)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EA1 #54A12E
analogous
#412EA1 #7B2EA1 #A12E8D
triadic
#7B2EA1 #A17B2E #2EA17B
tetradic
#7B2EA1 #A1412E #54A12E #2E8DA1
square
#7B2EA1 #A1412E #54A12E #2E8DA1
split-complementary
#7B2EA1 #8DA12E #2EA141
monochromatic
#321342 #572071 #7B2EA1 #9D43C9 #B673D7

Accessibility & contrast

On white

7.64
#7B2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7B2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EA1
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EA1#FFFFFF#000000##FFFFFF
##7B2EA11.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#21559E
Tritanopia (blue-blind)
#774764
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2ea1;
/* rgb */ color: rgb(123, 46, 161);
/* oklch */ color: oklch(46.7% 0.182 312.1);
Tailwind
colors: {
  custom: {
    50: '#a56ebd',
    500: '#7b2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ea1;
$custom-light: #a56ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ea1",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 280.174,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46661,
    "c": 0.18158,
    "h": 312.1
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#7B2EA1
secondary
#87BE6C
accent
#DF497A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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