#7B3EC6#7B3EC6

#7B3EC6 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.3% C 0.200 H 299.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7B3EC6
RGBrgb(123, 62, 198)
HSLhsl(267, 54%, 51%)
HSVhsv(267, 69%, 78%)
CMYKcmyk(37.9%, 68.7%, 0%, 22.4%)
CIE-LABlab(40.79, 53.02, -61.00)
CIE-LCHlch(40.79, 80.82, 310.99°)
OKLaboklab(51.29% 0.0997 -0.1739)
OKLCHoklch(51.29% 0.2 299.8)
XYZxyz(20.0815, 11.7332, 54.6219)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3EC6 #89C63E
analogous
#3E45C6 #7B3EC6 #BF3EC6
triadic
#7B3EC6 #C67B3E #3EC67B
tetradic
#7B3EC6 #C63E45 #89C63E #3EC6BF
square
#7B3EC6 #C63E45 #89C63E #3EC6BF
split-complementary
#7B3EC6 #C6BF3E #45C63E
monochromatic
#411F6A #5E2D99 #7B3EC6 #9B6DD4 #BC9CE2

Accessibility & contrast

On white

6.28
#7B3EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7B3EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B3EC6
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3EC6#FFFFFF#000000##FFFFFF
##7B3EC61.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CA
Deuteranopia (green-blind)
#005FC3
Tritanopia (blue-blind)
#6A5E7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b3ec6;
/* rgb */ color: rgb(123, 62, 198);
/* oklch */ color: oklch(51.3% 0.200 299.8);
Tailwind
colors: {
  custom: {
    50: '#a778d8',
    500: '#7b3ec6',
    950: '#000000',
  },
}
SCSS
$custom: #7b3ec6;
$custom-light: #a778d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3ec6",
  "rgb": {
    "r": 123,
    "g": 62,
    "b": 198
  },
  "hsl": {
    "h": 266.912,
    "s": 54.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51293,
    "c": 0.20049,
    "h": 299.8
  },
  "luminance": 0.11733
}

Semantic roles & 50–950 ramp

primary
#7B3EC6
secondary
#B3CE92
accent
#DE4A9C
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B3EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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