#7B3FA2#7B3FA2

#7B3FA2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.9% C 0.159 H 309.7°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7B3FA2
RGBrgb(123, 63, 162)
HSLhsl(276, 44%, 44%)
HSVhsv(276, 61%, 64%)
CMYKcmyk(24.1%, 61.1%, 0%, 36.5%)
CIE-LABlab(38.51, 43.79, -43.43)
CIE-LCHlch(38.51, 61.67, 315.24°)
OKLaboklab(48.87% 0.1016 -0.1223)
OKLCHoklch(48.87% 0.159 309.7)
XYZxyz(16.4662, 10.3749, 35.3105)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3FA2 #66A23F
analogous
#4A3FA2 #7B3FA2 #A23F98
triadic
#7B3FA2 #A27B3F #3FA27B
tetradic
#7B3FA2 #A24A3F #66A23F #3F98A2
square
#7B3FA2 #A24A3F #66A23F #3F98A2
split-complementary
#7B3FA2 #98A23F #3FA24A
monochromatic
#381D4A #5A2E76 #7B3FA2 #9A5EC0 #B58AD1

Accessibility & contrast

On white

6.83
#7B3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7B3FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B3FA2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3FA2#FFFFFF#000000##FFFFFF
##7B3FA21.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1758A5
Deuteranopia (green-blind)
#335CA0
Tritanopia (blue-blind)
#76526A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7b3fa2;
/* rgb */ color: rgb(123, 63, 162);
/* oklch */ color: oklch(48.9% 0.159 309.7);
Tailwind
colors: {
  custom: {
    50: '#a477be',
    500: '#7b3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7b3fa2;
$custom-light: #a477be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3fa2",
  "rgb": {
    "r": 123,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 276.364,
    "s": 44,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48866,
    "c": 0.15897,
    "h": 309.7
  },
  "luminance": 0.10375
}

Semantic roles & 50–950 ramp

primary
#7B3FA2
secondary
#98BC81
accent
#D45486
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #7B3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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