#7B2CA4#7B2CA4

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

Color values

HEX#7B2CA4
RGBrgb(123, 44, 164)
HSLhsl(280, 58%, 41%)
HSVhsv(280, 73%, 64%)
CMYKcmyk(25%, 73.2%, 0%, 35.7%)
CIE-LABlab(35.39, 53.25, -49.65)
CIE-LCHlch(35.39, 72.80, 317.00°)
OKLaboklab(46.66% 0.1234 -0.1404)
OKLCHoklch(46.66% 0.187 311.3)
XYZxyz(15.7686, 8.6930, 35.9620)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CA4 #55A42C
analogous
#3F2CA4 #7B2CA4 #A42C91
triadic
#7B2CA4 #A47B2C #2CA47B
tetradic
#7B2CA4 #A43F2C #55A42C #2C91A4
square
#7B2CA4 #A43F2C #55A42C #2C91A4
split-complementary
#7B2CA4 #91A42C #2CA43F
monochromatic
#331243 #571F74 #7B2CA4 #9D41CC #B671D9

Accessibility & contrast

On white

7.67
#7B2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7B2CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2CA4
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CA4#FFFFFF#000000##FFFFFF
##7B2CA41.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#1955A1
Tritanopia (blue-blind)
#764765
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2ca4;
/* rgb */ color: rgb(123, 44, 164);
/* oklch */ color: oklch(46.7% 0.187 311.3);
Tailwind
colors: {
  custom: {
    50: '#a56dc0',
    500: '#7b2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ca4;
$custom-light: #a56dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ca4",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 279.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46664,
    "c": 0.18696,
    "h": 311.3
  },
  "luminance": 0.08693
}

Semantic roles & 50–950 ramp

primary
#7B2CA4
secondary
#88C06B
accent
#E1477C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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