#7B3EA2#7B3EA2

#7B3EA2 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.7% C 0.160 H 309.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7B3EA2
RGBrgb(123, 62, 162)
HSLhsl(277, 45%, 44%)
HSVhsv(277, 62%, 64%)
CMYKcmyk(24.1%, 61.7%, 0%, 36.5%)
CIE-LABlab(38.31, 44.31, -43.74)
CIE-LCHlch(38.31, 62.26, 315.37°)
OKLaboklab(48.73% 0.1028 -0.1232)
OKLCHoklch(48.73% 0.16 309.9)
XYZxyz(16.4113, 10.2651, 35.2922)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3EA2 #65A23E
analogous
#493EA2 #7B3EA2 #A23E97
triadic
#7B3EA2 #A27B3E #3EA27B
tetradic
#7B3EA2 #A2493E #65A23E #3E97A2
square
#7B3EA2 #A2493E #65A23E #3E97A2
split-complementary
#7B3EA2 #97A23E #3EA249
monochromatic
#381C49 #592D76 #7B3EA2 #9A5CC1 #B589D2

Accessibility & contrast

On white

6.88
#7B3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7B3EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B3EA2
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3EA2#FFFFFF#000000##FFFFFF
##7B3EA21.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1457A5
Deuteranopia (green-blind)
#325BA0
Tritanopia (blue-blind)
#76516A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7b3ea2;
/* rgb */ color: rgb(123, 62, 162);
/* oklch */ color: oklch(48.7% 0.160 309.9);
Tailwind
colors: {
  custom: {
    50: '#a477be',
    500: '#7b3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7b3ea2;
$custom-light: #a477be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3ea2",
  "rgb": {
    "r": 123,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 276.6,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48725,
    "c": 0.16048,
    "h": 309.9
  },
  "luminance": 0.10265
}

Semantic roles & 50–950 ramp

primary
#7B3EA2
secondary
#97BC80
accent
#D45386
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7B3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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