#7B3EB4#7B3EB4

#7B3EB4 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.181 H 304.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#7B3EB4
RGBrgb(123, 62, 180)
HSLhsl(271, 49%, 47%)
HSVhsv(271, 66%, 71%)
CMYKcmyk(31.7%, 65.6%, 0%, 29.4%)
CIE-LABlab(39.50, 48.59, -52.54)
CIE-LCHlch(39.50, 71.57, 312.76°)
OKLaboklab(49.96% 0.1019 -0.149)
OKLCHoklch(49.96% 0.181 304.4)
XYZxyz(18.1274, 10.9516, 44.3300)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3EB4 #77B43E
analogous
#403EB4 #7B3EB4 #B43EB2
triadic
#7B3EB4 #B47B3E #3EB47B
tetradic
#7B3EB4 #B4403E #77B43E #3EB2B4
square
#7B3EB4 #B4403E #77B43E #3EB2B4
split-complementary
#7B3EB4 #B2B43E #3EB440
monochromatic
#3D1F59 #5C2E86 #7B3EB4 #9965CA #B793DA

Accessibility & contrast

On white

6.58
#7B3EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7B3EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B3EB4
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3EB4#FFFFFF#000000##FFFFFF
##7B3EB41.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#1A5DB1
Tritanopia (blue-blind)
#705873
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7b3eb4;
/* rgb */ color: rgb(123, 62, 180);
/* oklch */ color: oklch(50.0% 0.181 304.4);
Tailwind
colors: {
  custom: {
    50: '#a577cb',
    500: '#7b3eb4',
    950: '#000000',
  },
}
SCSS
$custom: #7b3eb4;
$custom-light: #a577cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3eb4",
  "rgb": {
    "r": 123,
    "g": 62,
    "b": 180
  },
  "hsl": {
    "h": 271.017,
    "s": 48.76,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49961,
    "c": 0.18056,
    "h": 304.4
  },
  "luminance": 0.10951
}

Semantic roles & 50–950 ramp

primary
#7B3EB4
secondary
#A6C589
accent
#D84F92
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B3EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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