#7B4EB0#7B4EB0

#7B4EB0 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.0% C 0.152 H 302.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7B4EB0
RGBrgb(123, 78, 176)
HSLhsl(268, 39%, 50%)
HSVhsv(268, 56%, 69%)
CMYKcmyk(30.1%, 55.7%, 0%, 31%)
CIE-LABlab(42.45, 39.00, -45.44)
CIE-LCHlch(42.45, 59.88, 310.64°)
OKLaboklab(52.03% 0.0821 -0.1282)
OKLCHoklch(52.03% 0.152 302.6)
XYZxyz(18.7275, 12.7943, 42.5488)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4EB0 #83B04E
analogous
#4E52B0 #7B4EB0 #AC4EB0
triadic
#7B4EB0 #B07B4E #4EB07B
tetradic
#7B4EB0 #B04E52 #83B04E #4EB0AC
square
#7B4EB0 #B04E52 #83B04E #4EB0AC
split-complementary
#7B4EB0 #B0AC4E #52B04E
monochromatic
#40285B #5D3B86 #7B4EB0 #9B78C3 #BAA2D6

Accessibility & contrast

On white

5.90
#7B4EB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7B4EB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4EB0
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4EB0#FFFFFF#000000##FFFFFF
##7B4EB01.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2863B3
Deuteranopia (green-blind)
#3864AE
Tritanopia (blue-blind)
#716177
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4eb0;
/* rgb */ color: rgb(123, 78, 176);
/* oklch */ color: oklch(52.0% 0.152 302.6);
Tailwind
colors: {
  custom: {
    50: '#a481c8',
    500: '#7b4eb0',
    950: '#000000',
  },
}
SCSS
$custom: #7b4eb0;
$custom-light: #a481c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4eb0",
  "rgb": {
    "r": 123,
    "g": 78,
    "b": 176
  },
  "hsl": {
    "h": 267.551,
    "s": 38.583,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5203,
    "c": 0.15229,
    "h": 302.6
  },
  "luminance": 0.12794
}

Semantic roles & 50–950 ramp

primary
#7B4EB0
secondary
#AFC397
accent
#CF5999
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7B4EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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