#7B51AE#7B51AE

#7B51AE is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.4% C 0.145 H 302.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7B51AE
RGBrgb(123, 81, 174)
HSLhsl(267, 36%, 50%)
HSVhsv(267, 53%, 68%)
CMYKcmyk(29.3%, 53.4%, 0%, 31.8%)
CIE-LABlab(42.99, 36.79, -43.40)
CIE-LCHlch(42.99, 56.90, 310.29°)
OKLaboklab(52.39% 0.078 -0.1223)
OKLCHoklch(52.39% 0.145 302.5)
XYZxyz(18.7491, 13.1518, 41.5870)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B51AE #84AE51
analogous
#5155AE #7B51AE #AA51AE
triadic
#7B51AE #AE7B51 #51AE7B
tetradic
#7B51AE #AE5155 #84AE51 #51AEAA
square
#7B51AE #AE5155 #84AE51 #51AEAA
split-complementary
#7B51AE #AEAA51 #55AE51
monochromatic
#402A5A #5D3E84 #7B51AE #9B7BC1 #BAA5D5

Accessibility & contrast

On white

5.78
#7B51AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7B51AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B51AE
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B51AE#FFFFFF#000000##FFFFFF
##7B51AE1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3065B1
Deuteranopia (green-blind)
#3D65AC
Tritanopia (blue-blind)
#716378
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7b51ae;
/* rgb */ color: rgb(123, 81, 174);
/* oklch */ color: oklch(52.4% 0.145 302.5);
Tailwind
colors: {
  custom: {
    50: '#a483c7',
    500: '#7b51ae',
    950: '#000000',
  },
}
SCSS
$custom: #7b51ae;
$custom-light: #a483c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b51ae",
  "rgb": {
    "r": 123,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 267.097,
    "s": 36.471,
    "l": 50
  },
  "oklch": {
    "l": 0.52389,
    "c": 0.14505,
    "h": 302.5
  },
  "luminance": 0.13152
}

Semantic roles & 50–950 ramp

primary
#7B51AE
secondary
#AFC299
accent
#CC5B99
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0B13
muted
#7F7C82

Preview Lab

Preview with #7B51AE

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

Preview Lab → · Contrast checker → · Palette generator →

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