#7B2AA6#7B2AA6

#7B2AA6 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.191 H 310.8°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7B2AA6
RGBrgb(123, 42, 166)
HSLhsl(279, 60%, 41%)
HSVhsv(279, 75%, 65%)
CMYKcmyk(25.9%, 74.7%, 0%, 34.9%)
CIE-LABlab(35.24, 54.50, -51.09)
CIE-LCHlch(35.24, 74.70, 316.85°)
OKLaboklab(46.61% 0.1251 -0.1446)
OKLCHoklch(46.61% 0.191 310.8)
XYZxyz(15.8780, 8.6204, 36.8965)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AA6 #55A62A
analogous
#3D2AA6 #7B2AA6 #A62A93
triadic
#7B2AA6 #A67B2A #2AA67B
tetradic
#7B2AA6 #A63D2A #55A62A #2A93A6
square
#7B2AA6 #A63D2A #55A62A #2A93A6
split-complementary
#7B2AA6 #93A62A #2AA63D
monochromatic
#331144 #571E75 #7B2AA6 #9D3FCE #B670DB

Accessibility & contrast

On white

7.71
#7B2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2AA6
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AA6#FFFFFF#000000##FFFFFF
##7B2AA61.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#1154A3
Tritanopia (blue-blind)
#754766
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2aa6;
/* rgb */ color: rgb(123, 42, 166);
/* oklch */ color: oklch(46.6% 0.191 310.8);
Tailwind
colors: {
  custom: {
    50: '#a66cc1',
    500: '#7b2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #7b2aa6;
$custom-light: #a66cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2aa6",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 279.194,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46608,
    "c": 0.19122,
    "h": 310.8
  },
  "luminance": 0.0862
}

Semantic roles & 50–950 ramp

primary
#7B2AA6
secondary
#88C26A
accent
#E3457C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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