#7B4EAE#7B4EAE

#7B4EAE is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.9% C 0.150 H 303.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7B4EAE
RGBrgb(123, 78, 174)
HSLhsl(268, 38%, 49%)
HSVhsv(268, 55%, 68%)
CMYKcmyk(29.3%, 55.2%, 0%, 31.8%)
CIE-LABlab(42.33, 38.50, -44.45)
CIE-LCHlch(42.33, 58.81, 310.89°)
OKLaboklab(51.9% 0.0821 -0.1253)
OKLCHoklch(51.9% 0.15 303.2)
XYZxyz(18.5310, 12.7157, 41.5143)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4EAE #81AE4E
analogous
#4E51AE #7B4EAE #AB4EAE
triadic
#7B4EAE #AE7B4E #4EAE7B
tetradic
#7B4EAE #AE4E51 #81AE4E #4EAEAB
square
#7B4EAE #AE4E51 #81AE4E #4EAEAB
split-complementary
#7B4EAE #AEAB4E #51AE4E
monochromatic
#3F2859 #5D3B84 #7B4EAE #9A77C2 #BAA1D5

Accessibility & contrast

On white

5.93
#7B4EAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7B4EAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4EAE
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4EAE#FFFFFF#000000##FFFFFF
##7B4EAE1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B1
Deuteranopia (green-blind)
#3A64AC
Tritanopia (blue-blind)
#726076
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4eae;
/* rgb */ color: rgb(123, 78, 174);
/* oklch */ color: oklch(51.9% 0.150 303.2);
Tailwind
colors: {
  custom: {
    50: '#a481c7',
    500: '#7b4eae',
    950: '#000000',
  },
}
SCSS
$custom: #7b4eae;
$custom-light: #a481c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4eae",
  "rgb": {
    "r": 123,
    "g": 78,
    "b": 174
  },
  "hsl": {
    "h": 268.125,
    "s": 38.095,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51903,
    "c": 0.14982,
    "h": 303.2
  },
  "luminance": 0.12716
}

Semantic roles & 50–950 ramp

primary
#7B4EAE
secondary
#ADC296
accent
#CE5A98
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7B4EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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