#7B3FA8#7B3FA8

#7B3FA8 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.3% C 0.166 H 307.7°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7B3FA8
RGBrgb(123, 63, 168)
HSLhsl(274, 45%, 45%)
HSVhsv(274, 63%, 66%)
CMYKcmyk(26.8%, 62.5%, 0%, 34.1%)
CIE-LABlab(38.89, 45.20, -46.41)
CIE-LCHlch(38.89, 64.78, 314.24°)
OKLaboklab(49.26% 0.1014 -0.131)
OKLCHoklch(49.26% 0.166 307.7)
XYZxyz(17.0123, 10.5933, 38.1867)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3FA8 #6CA83F
analogous
#463FA8 #7B3FA8 #A83FA0
triadic
#7B3FA8 #A87B3F #3FA87B
tetradic
#7B3FA8 #A8463F #6CA83F #3FA0A8
square
#7B3FA8 #A8463F #6CA83F #3FA0A8
split-complementary
#7B3FA8 #A0A83F #3FA846
monochromatic
#3A1E4F #5A2E7B #7B3FA8 #9961C4 #B68DD4

Accessibility & contrast

On white

6.73
#7B3FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7B3FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B3FA8
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3FA8#FFFFFF#000000##FFFFFF
##7B3FA81.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0759AB
Deuteranopia (green-blind)
#2D5CA6
Tritanopia (blue-blind)
#74546D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b3fa8;
/* rgb */ color: rgb(123, 63, 168);
/* oklch */ color: oklch(49.3% 0.166 307.7);
Tailwind
colors: {
  custom: {
    50: '#a577c2',
    500: '#7b3fa8',
    950: '#000000',
  },
}
SCSS
$custom: #7b3fa8;
$custom-light: #a577c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3fa8",
  "rgb": {
    "r": 123,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 274.286,
    "s": 45.455,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49263,
    "c": 0.16572,
    "h": 307.7
  },
  "luminance": 0.10593
}

Semantic roles & 50–950 ramp

primary
#7B3FA8
secondary
#9DBF84
accent
#D5538B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7B3FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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