#7B40AC#7B40AC

#7B40AC is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.7% C 0.169 H 306.4°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7B40AC
RGBrgb(123, 64, 172)
HSLhsl(273, 46%, 46%)
HSVhsv(273, 63%, 67%)
CMYKcmyk(28.5%, 62.8%, 0%, 32.5%)
CIE-LABlab(39.34, 45.63, -48.07)
CIE-LCHlch(39.34, 66.28, 313.51°)
OKLaboklab(49.67% 0.1001 -0.1359)
OKLCHoklch(49.67% 0.169 306.4)
XYZxyz(17.4466, 10.8565, 40.1981)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40AC #71AC40
analogous
#4540AC #7B40AC #AC40A7
triadic
#7B40AC #AC7B40 #40AC7B
tetradic
#7B40AC #AC4540 #71AC40 #40A7AC
square
#7B40AC #AC4540 #71AC40 #40A7AC
split-complementary
#7B40AC #A7AC40 #40AC45
monochromatic
#3B1F53 #5B2F7F #7B40AC #9964C5 #B691D6

Accessibility & contrast

On white

6.62
#7B40AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7B40AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40AC
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40AC#FFFFFF#000000##FFFFFF
##7B40AC1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BAF
Deuteranopia (green-blind)
#2A5DAA
Tritanopia (blue-blind)
#735670
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7b40ac;
/* rgb */ color: rgb(123, 64, 172);
/* oklch */ color: oklch(49.7% 0.169 306.4);
Tailwind
colors: {
  custom: {
    50: '#a578c5',
    500: '#7b40ac',
    950: '#000000',
  },
}
SCSS
$custom: #7b40ac;
$custom-light: #a578c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40ac",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 272.778,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49673,
    "c": 0.16876,
    "h": 306.4
  },
  "luminance": 0.10856
}

Semantic roles & 50–950 ramp

primary
#7B40AC
secondary
#A1C187
accent
#D5528E
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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