#7B2AA5#7B2AA5

#7B2AA5 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.190 H 311.2°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7B2AA5
RGBrgb(123, 42, 165)
HSLhsl(280, 59%, 41%)
HSVhsv(280, 75%, 65%)
CMYKcmyk(25.5%, 74.5%, 0%, 35.3%)
CIE-LABlab(35.17, 54.28, -50.60)
CIE-LCHlch(35.17, 74.21, 317.01°)
OKLaboklab(46.53% 0.1252 -0.1432)
OKLCHoklch(46.53% 0.19 311.2)
XYZxyz(15.7866, 8.5839, 36.4153)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AA5 #54A52A
analogous
#3D2AA5 #7B2AA5 #A52A91
triadic
#7B2AA5 #A57B2A #2AA57B
tetradic
#7B2AA5 #A53D2A #54A52A #2A91A5
square
#7B2AA5 #A53D2A #54A52A #2A91A5
split-complementary
#7B2AA5 #91A52A #2AA53D
monochromatic
#321143 #571E74 #7B2AA5 #9D3ECE #B66FDA

Accessibility & contrast

On white

7.73
#7B2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7B2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2AA5
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AA5#FFFFFF#000000##FFFFFF
##7B2AA51.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#1454A2
Tritanopia (blue-blind)
#764665
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2aa5;
/* rgb */ color: rgb(123, 42, 165);
/* oklch */ color: oklch(46.5% 0.190 311.2);
Tailwind
colors: {
  custom: {
    50: '#a56cc0',
    500: '#7b2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #7b2aa5;
$custom-light: #a56cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2aa5",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 279.512,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46534,
    "c": 0.19026,
    "h": 311.2
  },
  "luminance": 0.08583
}

Semantic roles & 50–950 ramp

primary
#7B2AA5
secondary
#87C169
accent
#E3457B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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