#7B2AAE#7B2AAE

#7B2AAE is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.2% C 0.199 H 308.4°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7B2AAE
RGBrgb(123, 42, 174)
HSLhsl(277, 61%, 42%)
HSVhsv(277, 76%, 68%)
CMYKcmyk(29.3%, 75.9%, 0%, 31.8%)
CIE-LABlab(35.84, 56.25, -54.91)
CIE-LCHlch(35.84, 78.61, 315.69°)
OKLaboklab(47.21% 0.1236 -0.1559)
OKLCHoklch(47.21% 0.199 308.4)
XYZxyz(16.6347, 8.9232, 40.8822)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AAE #5DAE2A
analogous
#392AAE #7B2AAE #AE2A9F
triadic
#7B2AAE #AE7B2A #2AAE7B
tetradic
#7B2AAE #AE392A #5DAE2A #2A9FAE
square
#7B2AAE #AE392A #5DAE2A #2A9FAE
split-complementary
#7B2AAE #9FAE2A #2AAE39
monochromatic
#35124B #581E7D #7B2AAE #9B43D2 #B575DE

Accessibility & contrast

On white

7.54
#7B2AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7B2AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2AAE
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AAE#FFFFFF#000000##FFFFFF
##7B2AAE1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0055AB
Tritanopia (blue-blind)
#734A6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2aae;
/* rgb */ color: rgb(123, 42, 174);
/* oklch */ color: oklch(47.2% 0.199 308.4);
Tailwind
colors: {
  custom: {
    50: '#a66cc7',
    500: '#7b2aae',
    950: '#000000',
  },
}
SCSS
$custom: #7b2aae;
$custom-light: #a66cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2aae",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 174
  },
  "hsl": {
    "h": 276.818,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47213,
    "c": 0.19895,
    "h": 308.4
  },
  "luminance": 0.08923
}

Semantic roles & 50–950 ramp

primary
#7B2AAE
secondary
#90C56F
accent
#E44482
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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