#7B2CA3#7B2CA3

#7B2CA3 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.186 H 311.6°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7B2CA3
RGBrgb(123, 44, 163)
HSLhsl(280, 57%, 41%)
HSVhsv(280, 73%, 64%)
CMYKcmyk(24.5%, 73%, 0%, 36.1%)
CIE-LABlab(35.32, 53.03, -49.16)
CIE-LCHlch(35.32, 72.31, 317.17°)
OKLaboklab(46.59% 0.1235 -0.139)
OKLCHoklch(46.59% 0.186 311.6)
XYZxyz(15.6787, 8.6571, 35.4883)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CA3 #54A32C
analogous
#3F2CA3 #7B2CA3 #A32C8F
triadic
#7B2CA3 #A37B2C #2CA37B
tetradic
#7B2CA3 #A33F2C #54A32C #2C8FA3
square
#7B2CA3 #A33F2C #54A32C #2C8FA3
split-complementary
#7B2CA3 #8FA32C #2CA33F
monochromatic
#321243 #571F73 #7B2CA3 #9D41CC #B671D9

Accessibility & contrast

On white

7.69
#7B2CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7B2CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2CA3
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CA3#FFFFFF#000000##FFFFFF
##7B2CA31.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#1B55A0
Tritanopia (blue-blind)
#764665
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2ca3;
/* rgb */ color: rgb(123, 44, 163);
/* oklch */ color: oklch(46.6% 0.186 311.6);
Tailwind
colors: {
  custom: {
    50: '#a56dbf',
    500: '#7b2ca3',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ca3;
$custom-light: #a56dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ca3",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 279.832,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46591,
    "c": 0.18598,
    "h": 311.6
  },
  "luminance": 0.08657
}

Semantic roles & 50–950 ramp

primary
#7B2CA3
secondary
#87C06B
accent
#E1477B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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