#7B4BA2#7B4BA2

#7B4BA2 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 50.7% C 0.140 H 307.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7B4BA2
RGBrgb(123, 75, 162)
HSLhsl(273, 37%, 46%)
HSVhsv(273, 54%, 64%)
CMYKcmyk(24.1%, 53.7%, 0%, 36.5%)
CIE-LABlab(40.98, 37.24, -39.49)
CIE-LCHlch(40.98, 54.27, 313.32°)
OKLaboklab(50.68% 0.0854 -0.1108)
OKLCHoklch(50.68% 0.14 307.6)
XYZxyz(17.2047, 11.8519, 35.5567)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4BA2 #72A24B
analogous
#4F4BA2 #7B4BA2 #A24B9E
triadic
#7B4BA2 #A27B4B #4BA27B
tetradic
#7B4BA2 #A24F4B #72A24B #4B9EA2
square
#7B4BA2 #A24F4B #72A24B #4B9EA2
split-complementary
#7B4BA2 #9EA24B #4BA24F
monochromatic
#3B244E #5B3878 #7B4BA2 #996EBC #B798CF

Accessibility & contrast

On white

6.23
#7B4BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7B4BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4BA2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4BA2#FFFFFF#000000##FFFFFF
##7B4BA21.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315FA5
Deuteranopia (green-blind)
#4061A0
Tritanopia (blue-blind)
#755A6F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b4ba2;
/* rgb */ color: rgb(123, 75, 162);
/* oklch */ color: oklch(50.7% 0.140 307.6);
Tailwind
colors: {
  custom: {
    50: '#a37fbe',
    500: '#7b4ba2',
    950: '#000000',
  },
}
SCSS
$custom: #7b4ba2;
$custom-light: #a37fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4ba2",
  "rgb": {
    "r": 123,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 273.103,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50679,
    "c": 0.13992,
    "h": 307.6
  },
  "luminance": 0.11852
}

Semantic roles & 50–950 ramp

primary
#7B4BA2
secondary
#A2BC8D
accent
#CD5B8E
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7B4BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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