#7B3EB2#7B3EB2

#7B3EB2 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.8% C 0.178 H 304.9°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7B3EB2
RGBrgb(123, 62, 178)
HSLhsl(272, 48%, 47%)
HSVhsv(272, 65%, 70%)
CMYKcmyk(30.9%, 65.2%, 0%, 30.2%)
CIE-LABlab(39.36, 48.10, -51.58)
CIE-LCHlch(39.36, 70.53, 313.00°)
OKLaboklab(49.82% 0.1021 -0.1462)
OKLCHoklch(49.82% 0.178 304.9)
XYZxyz(17.9251, 10.8707, 43.2648)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3EB2 #75B23E
analogous
#413EB2 #7B3EB2 #B23EAF
triadic
#7B3EB2 #B27B3E #3EB27B
tetradic
#7B3EB2 #B2413E #75B23E #3EAFB2
square
#7B3EB2 #B2413E #75B23E #3EAFB2
split-complementary
#7B3EB2 #AFB23E #3EB241
monochromatic
#3C1E57 #5C2E85 #7B3EB2 #9964C9 #B792D9

Accessibility & contrast

On white

6.62
#7B3EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7B3EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B3EB2
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3EB2#FFFFFF#000000##FFFFFF
##7B3EB21.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#1E5DAF
Tritanopia (blue-blind)
#715772
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7b3eb2;
/* rgb */ color: rgb(123, 62, 178);
/* oklch */ color: oklch(49.8% 0.178 304.9);
Tailwind
colors: {
  custom: {
    50: '#a577ca',
    500: '#7b3eb2',
    950: '#000000',
  },
}
SCSS
$custom: #7b3eb2;
$custom-light: #a577ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3eb2",
  "rgb": {
    "r": 123,
    "g": 62,
    "b": 178
  },
  "hsl": {
    "h": 271.552,
    "s": 48.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49818,
    "c": 0.17833,
    "h": 304.9
  },
  "luminance": 0.10871
}

Semantic roles & 50–950 ramp

primary
#7B3EB2
secondary
#A4C488
accent
#D85090
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B3EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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