#7B4DAF#7B4DAF

#7B4DAF is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.8% C 0.153 H 303.1°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7B4DAF
RGBrgb(123, 77, 175)
HSLhsl(268, 39%, 49%)
HSVhsv(268, 56%, 69%)
CMYKcmyk(29.7%, 56%, 0%, 31.4%)
CIE-LABlab(42.18, 39.31, -45.29)
CIE-LCHlch(42.18, 59.97, 310.96°)
OKLaboklab(51.81% 0.0834 -0.1278)
OKLCHoklch(51.81% 0.153 303.1)
XYZxyz(18.5584, 12.6139, 42.0061)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4DAF #81AF4D
analogous
#4D50AF #7B4DAF #AC4DAF
triadic
#7B4DAF #AF7B4D #4DAF7B
tetradic
#7B4DAF #AF4D50 #81AF4D #4DAFAC
square
#7B4DAF #AF4D50 #81AF4D #4DAFAC
split-complementary
#7B4DAF #AFAC4D #50AF4D
monochromatic
#3F285A #5D3A85 #7B4DAF #9A76C3 #BAA1D6

Accessibility & contrast

On white

5.96
#7B4DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7B4DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4DAF
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4DAF#FFFFFF#000000##FFFFFF
##7B4DAF1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2763B2
Deuteranopia (green-blind)
#3863AD
Tritanopia (blue-blind)
#716076
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4daf;
/* rgb */ color: rgb(123, 77, 175);
/* oklch */ color: oklch(51.8% 0.153 303.1);
Tailwind
colors: {
  custom: {
    50: '#a480c7',
    500: '#7b4daf',
    950: '#000000',
  },
}
SCSS
$custom: #7b4daf;
$custom-light: #a480c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4daf",
  "rgb": {
    "r": 123,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 268.163,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51807,
    "c": 0.15262,
    "h": 303.1
  },
  "luminance": 0.12614
}

Semantic roles & 50–950 ramp

primary
#7B4DAF
secondary
#ADC395
accent
#CF5998
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7B4DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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