#7B2AA8#7B2AA8

#7B2AA8 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.8% C 0.193 H 310.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7B2AA8
RGBrgb(123, 42, 168)
HSLhsl(279, 60%, 41%)
HSVhsv(279, 75%, 66%)
CMYKcmyk(26.8%, 75%, 0%, 34.1%)
CIE-LABlab(35.39, 54.93, -52.05)
CIE-LCHlch(35.39, 75.68, 316.54°)
OKLaboklab(46.76% 0.1247 -0.1475)
OKLCHoklch(46.76% 0.193 310.2)
XYZxyz(16.0628, 8.6944, 37.8702)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AA8 #57A82A
analogous
#3C2AA8 #7B2AA8 #A82A96
triadic
#7B2AA8 #A87B2A #2AA87B
tetradic
#7B2AA8 #A83C2A #57A82A #2A96A8
square
#7B2AA8 #A83C2A #57A82A #2A96A8
split-complementary
#7B2AA8 #96A82A #2AA83C
monochromatic
#331246 #571E77 #7B2AA8 #9C40CF #B571DB

Accessibility & contrast

On white

7.67
#7B2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2AA8
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AA8#FFFFFF#000000##FFFFFF
##7B2AA81.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#0B54A5
Tritanopia (blue-blind)
#754767
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2aa8;
/* rgb */ color: rgb(123, 42, 168);
/* oklch */ color: oklch(46.8% 0.193 310.2);
Tailwind
colors: {
  custom: {
    50: '#a66cc3',
    500: '#7b2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #7b2aa8;
$custom-light: #a66cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2aa8",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 278.571,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46758,
    "c": 0.19315,
    "h": 310.2
  },
  "luminance": 0.08694
}

Semantic roles & 50–950 ramp

primary
#7B2AA8
secondary
#8AC36B
accent
#E3457D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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