#7B2AAA#7B2AAA

#7B2AAA is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.195 H 309.6°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7B2AAA
RGBrgb(123, 42, 170)
HSLhsl(278, 60%, 42%)
HSVhsv(278, 75%, 67%)
CMYKcmyk(27.6%, 75.3%, 0%, 33.3%)
CIE-LABlab(35.54, 55.37, -53.01)
CIE-LCHlch(35.54, 76.65, 316.25°)
OKLaboklab(46.91% 0.1244 -0.1503)
OKLCHoklch(46.91% 0.195 309.6)
XYZxyz(16.2506, 8.7695, 38.8590)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AAA #59AA2A
analogous
#3B2AAA #7B2AAA #AA2A99
triadic
#7B2AAA #AA7B2A #2AAA7B
tetradic
#7B2AAA #AA3B2A #59AA2A #2A99AA
square
#7B2AAA #AA3B2A #59AA2A #2A99AA
split-complementary
#7B2AAA #99AA2A #2AAA3B
monochromatic
#341248 #571E79 #7B2AAA #9C41D0 #B572DC

Accessibility & contrast

On white

7.63
#7B2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7B2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2AAA
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AAA#FFFFFF#000000##FFFFFF
##7B2AAA1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0355A7
Tritanopia (blue-blind)
#744868
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2aaa;
/* rgb */ color: rgb(123, 42, 170);
/* oklch */ color: oklch(46.9% 0.195 309.6);
Tailwind
colors: {
  custom: {
    50: '#a66cc4',
    500: '#7b2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7b2aaa;
$custom-light: #a66cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2aaa",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 277.969,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46908,
    "c": 0.19508,
    "h": 309.6
  },
  "luminance": 0.08769
}

Semantic roles & 50–950 ramp

primary
#7B2AAA
secondary
#8CC36C
accent
#E4447F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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