#7B2CA5#7B2CA5

#7B2CA5 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.188 H 311.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#7B2CA5
RGBrgb(123, 44, 165)
HSLhsl(279, 58%, 41%)
HSVhsv(279, 73%, 65%)
CMYKcmyk(25.5%, 73.3%, 0%, 35.3%)
CIE-LABlab(35.46, 53.46, -50.14)
CIE-LCHlch(35.46, 73.30, 316.84°)
OKLaboklab(46.74% 0.1233 -0.1419)
OKLCHoklch(46.74% 0.188 311)
XYZxyz(15.8593, 8.7293, 36.4395)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CA5 #56A52C
analogous
#3F2CA5 #7B2CA5 #A52C92
triadic
#7B2CA5 #A57B2C #2CA57B
tetradic
#7B2CA5 #A53F2C #56A52C #2C92A5
square
#7B2CA5 #A53F2C #56A52C #2C92A5
split-complementary
#7B2CA5 #92A52C #2CA53F
monochromatic
#331244 #571F75 #7B2CA5 #9C42CD #B672D9

Accessibility & contrast

On white

7.65
#7B2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2CA5
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CA5#FFFFFF#000000##FFFFFF
##7B2CA51.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#1755A2
Tritanopia (blue-blind)
#754766
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2ca5;
/* rgb */ color: rgb(123, 44, 165);
/* oklch */ color: oklch(46.7% 0.188 311.0);
Tailwind
colors: {
  custom: {
    50: '#a56dc0',
    500: '#7b2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ca5;
$custom-light: #a56dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ca5",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 279.174,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46738,
    "c": 0.18793,
    "h": 311
  },
  "luminance": 0.08729
}

Semantic roles & 50–950 ramp

primary
#7B2CA5
secondary
#89C16C
accent
#E1477C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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