#7B2CAA#7B2CAA

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

Color values

HEX#7B2CAA
RGBrgb(123, 44, 170)
HSLhsl(278, 59%, 42%)
HSVhsv(278, 74%, 67%)
CMYKcmyk(27.6%, 74.1%, 0%, 33.3%)
CIE-LABlab(35.82, 54.56, -52.55)
CIE-LCHlch(35.82, 75.75, 316.08°)
OKLaboklab(47.11% 0.1225 -0.149)
OKLCHoklch(47.11% 0.193 309.4)
XYZxyz(16.3233, 8.9149, 38.8833)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CAA #5BAA2C
analogous
#3C2CAA #7B2CAA #AA2C9A
triadic
#7B2CAA #AA7B2C #2CAA7B
tetradic
#7B2CAA #AA3C2C #5BAA2C #2C9AAA
square
#7B2CAA #AA3C2C #5BAA2C #2C9AAA
split-complementary
#7B2CAA #9AAA2C #2CAA3C
monochromatic
#351349 #581F79 #7B2CAA #9B44CF #B575DB

Accessibility & contrast

On white

7.55
#7B2CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2CAA
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CAA#FFFFFF#000000##FFFFFF
##7B2CAA1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0955A7
Tritanopia (blue-blind)
#744969
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2caa;
/* rgb */ color: rgb(123, 44, 170);
/* oklch */ color: oklch(47.1% 0.193 309.4);
Tailwind
colors: {
  custom: {
    50: '#a66dc4',
    500: '#7b2caa',
    950: '#000000',
  },
}
SCSS
$custom: #7b2caa;
$custom-light: #a66dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2caa",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 277.619,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47109,
    "c": 0.19283,
    "h": 309.4
  },
  "luminance": 0.08915
}

Semantic roles & 50–950 ramp

primary
#7B2CAA
secondary
#8EC36F
accent
#E24680
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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