#7B3EC7#7B3EC7

#7B3EC7 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.202 H 299.6°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#7B3EC7
RGBrgb(123, 62, 199)
HSLhsl(267, 55%, 51%)
HSVhsv(267, 69%, 78%)
CMYKcmyk(38.2%, 68.8%, 0%, 22%)
CIE-LABlab(40.86, 53.27, -61.46)
CIE-LCHlch(40.86, 81.33, 310.91°)
OKLaboklab(51.37% 0.0996 -0.1753)
OKLCHoklch(51.37% 0.202 299.6)
XYZxyz(20.1972, 11.7795, 55.2313)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3EC7 #8AC73E
analogous
#3E45C7 #7B3EC7 #BF3EC7
triadic
#7B3EC7 #C77B3E #3EC77B
tetradic
#7B3EC7 #C73E45 #8AC73E #3EC7BF
square
#7B3EC7 #C73E45 #8AC73E #3EC7BF
split-complementary
#7B3EC7 #C7BF3E #45C73E
monochromatic
#411F6B #5E2D9B #7B3EC7 #9B6DD5 #BC9DE3

Accessibility & contrast

On white

6.26
#7B3EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7B3EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B3EC7
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3EC7#FFFFFF#000000##FFFFFF
##7B3EC71.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CB
Deuteranopia (green-blind)
#005FC4
Tritanopia (blue-blind)
#6A5F7E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b3ec7;
/* rgb */ color: rgb(123, 62, 199);
/* oklch */ color: oklch(51.4% 0.202 299.6);
Tailwind
colors: {
  custom: {
    50: '#a778d9',
    500: '#7b3ec7',
    950: '#000000',
  },
}
SCSS
$custom: #7b3ec7;
$custom-light: #a778d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3ec7",
  "rgb": {
    "r": 123,
    "g": 62,
    "b": 199
  },
  "hsl": {
    "h": 266.715,
    "s": 55.02,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5137,
    "c": 0.20158,
    "h": 299.6
  },
  "luminance": 0.1178
}

Semantic roles & 50–950 ramp

primary
#7B3EC7
secondary
#B4CF92
accent
#DE499C
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B3EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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