#7B2AAD#7B2AAD

#7B2AAD is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.198 H 308.7°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7B2AAD
RGBrgb(123, 42, 173)
HSLhsl(277, 61%, 42%)
HSVhsv(277, 76%, 68%)
CMYKcmyk(28.9%, 75.7%, 0%, 32.2%)
CIE-LABlab(35.76, 56.03, -54.44)
CIE-LCHlch(35.76, 78.12, 315.83°)
OKLaboklab(47.14% 0.1238 -0.1545)
OKLCHoklch(47.14% 0.198 308.7)
XYZxyz(16.5376, 8.8843, 40.3707)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AAD #5CAD2A
analogous
#392AAD #7B2AAD #AD2A9E
triadic
#7B2AAD #AD7B2A #2AAD7B
tetradic
#7B2AAD #AD392A #5CAD2A #2A9EAD
square
#7B2AAD #AD392A #5CAD2A #2A9EAD
split-complementary
#7B2AAD #9EAD2A #2AAD39
monochromatic
#35124B #581E7C #7B2AAD #9B43D1 #B574DD

Accessibility & contrast

On white

7.56
#7B2AAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2AAD
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AAD#FFFFFF#000000##FFFFFF
##7B2AAD1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#734A6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2aad;
/* rgb */ color: rgb(123, 42, 173);
/* oklch */ color: oklch(47.1% 0.198 308.7);
Tailwind
colors: {
  custom: {
    50: '#a66cc6',
    500: '#7b2aad',
    950: '#000000',
  },
}
SCSS
$custom: #7b2aad;
$custom-light: #a66cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2aad",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 173
  },
  "hsl": {
    "h": 277.099,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47137,
    "c": 0.19798,
    "h": 308.7
  },
  "luminance": 0.08884
}

Semantic roles & 50–950 ramp

primary
#7B2AAD
secondary
#8FC56E
accent
#E44481
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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