#7B42AC#7B42AC

#7B42AC is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.0% C 0.166 H 306.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7B42AC
RGBrgb(123, 66, 172)
HSLhsl(272, 45%, 47%)
HSVhsv(272, 62%, 67%)
CMYKcmyk(28.5%, 61.6%, 0%, 32.5%)
CIE-LABlab(39.73, 44.59, -47.44)
CIE-LCHlch(39.73, 65.11, 313.22°)
OKLaboklab(49.95% 0.0976 -0.1341)
OKLCHoklch(49.95% 0.166 306)
XYZxyz(17.5614, 11.0861, 40.2364)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42AC #73AC42
analogous
#4642AC #7B42AC #AC42A8
triadic
#7B42AC #AC7B42 #42AC7B
tetradic
#7B42AC #AC4642 #73AC42 #42A8AC
square
#7B42AC #AC4642 #73AC42 #42A8AC
split-complementary
#7B42AC #A8AC42 #42AC46
monochromatic
#3C2054 #5B3180 #7B42AC #9967C5 #B793D6

Accessibility & contrast

On white

6.53
#7B42AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7B42AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42AC
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42AC#FFFFFF#000000##FFFFFF
##7B42AC1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5CAF
Deuteranopia (green-blind)
#2C5EAA
Tritanopia (blue-blind)
#735771
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7b42ac;
/* rgb */ color: rgb(123, 66, 172);
/* oklch */ color: oklch(50.0% 0.166 306.0);
Tailwind
colors: {
  custom: {
    50: '#a579c5',
    500: '#7b42ac',
    950: '#000000',
  },
}
SCSS
$custom: #7b42ac;
$custom-light: #a579c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42ac",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 272.264,
    "s": 44.538,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49954,
    "c": 0.16583,
    "h": 306
  },
  "luminance": 0.11086
}

Semantic roles & 50–950 ramp

primary
#7B42AC
secondary
#A3C189
accent
#D4548F
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B42AC

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

Preview Lab → · Contrast checker → · Palette generator →

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