#7B42AE#7B42AE

#7B42AE is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.1% C 0.168 H 305.4°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7B42AE
RGBrgb(123, 66, 174)
HSLhsl(272, 45%, 47%)
HSVhsv(272, 62%, 68%)
CMYKcmyk(29.3%, 62.1%, 0%, 31.8%)
CIE-LABlab(39.85, 45.07, -48.42)
CIE-LCHlch(39.85, 66.15, 312.95°)
OKLaboklab(50.09% 0.0975 -0.137)
OKLCHoklch(50.09% 0.168 305.4)
XYZxyz(17.7549, 11.1635, 41.2556)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42AE #75AE42
analogous
#4542AE #7B42AE #AE42AB
triadic
#7B42AE #AE7B42 #42AE7B
tetradic
#7B42AE #AE4542 #75AE42 #42ABAE
square
#7B42AE #AE4542 #75AE42 #42ABAE
split-complementary
#7B42AE #ABAE42 #42AE45
monochromatic
#3C2055 #5C3182 #7B42AE #9968C6 #B794D6

Accessibility & contrast

On white

6.50
#7B42AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7B42AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42AE
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42AE#FFFFFF#000000##FFFFFF
##7B42AE1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035CB1
Deuteranopia (green-blind)
#2A5EAC
Tritanopia (blue-blind)
#725872
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7b42ae;
/* rgb */ color: rgb(123, 66, 174);
/* oklch */ color: oklch(50.1% 0.168 305.4);
Tailwind
colors: {
  custom: {
    50: '#a579c7',
    500: '#7b42ae',
    950: '#000000',
  },
}
SCSS
$custom: #7b42ae;
$custom-light: #a579c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42ae",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 271.667,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5009,
    "c": 0.16813,
    "h": 305.4
  },
  "luminance": 0.11163
}

Semantic roles & 50–950 ramp

primary
#7B42AE
secondary
#A4C28A
accent
#D55390
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B42AE

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

Preview Lab → · Contrast checker → · Palette generator →

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