#7B3CB2#7B3CB2

#7B3CB2 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.6% C 0.181 H 305.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7B3CB2
RGBrgb(123, 60, 178)
HSLhsl(272, 50%, 47%)
HSVhsv(272, 66%, 70%)
CMYKcmyk(30.9%, 66.3%, 0%, 30.2%)
CIE-LABlab(39.00, 49.11, -52.17)
CIE-LCHlch(39.00, 71.65, 313.27°)
OKLaboklab(49.56% 0.1044 -0.1479)
OKLCHoklch(49.56% 0.181 305.2)
XYZxyz(17.8183, 10.6571, 43.2292)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3CB2 #73B23C
analogous
#403CB2 #7B3CB2 #B23CAE
triadic
#7B3CB2 #B27B3C #3CB27B
tetradic
#7B3CB2 #B2403C #73B23C #3CAEB2
square
#7B3CB2 #B2403C #73B23C #3CAEB2
split-complementary
#7B3CB2 #AEB23C #3CB240
monochromatic
#3C1D56 #5B2D84 #7B3CB2 #9961CA #B78FD9

Accessibility & contrast

On white

6.71
#7B3CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7B3CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B3CB2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3CB2#FFFFFF#000000##FFFFFF
##7B3CB21.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#1A5CAF
Tritanopia (blue-blind)
#715672
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b3cb2;
/* rgb */ color: rgb(123, 60, 178);
/* oklch */ color: oklch(49.6% 0.181 305.2);
Tailwind
colors: {
  custom: {
    50: '#a576ca',
    500: '#7b3cb2',
    950: '#000000',
  },
}
SCSS
$custom: #7b3cb2;
$custom-light: #a576ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3cb2",
  "rgb": {
    "r": 123,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 272.034,
    "s": 49.58,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49556,
    "c": 0.18106,
    "h": 305.2
  },
  "luminance": 0.10657
}

Semantic roles & 50–950 ramp

primary
#7B3CB2
secondary
#A3C486
accent
#D94F8F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B3CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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