#7B3EC8#7B3EC8

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

Color values

HEX#7B3EC8
RGBrgb(123, 62, 200)
HSLhsl(267, 56%, 51%)
HSVhsv(267, 69%, 78%)
CMYKcmyk(38.5%, 69%, 0%, 21.6%)
CIE-LABlab(40.94, 53.52, -61.92)
CIE-LCHlch(40.94, 81.84, 310.84°)
OKLaboklab(51.45% 0.0994 -0.1766)
OKLCHoklch(51.45% 0.203 299.4)
XYZxyz(20.3137, 11.8261, 55.8448)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3EC8 #8BC83E
analogous
#3E46C8 #7B3EC8 #C03EC8
triadic
#7B3EC8 #C87B3E #3EC87B
tetradic
#7B3EC8 #C83E46 #8BC83E #3EC8C0
square
#7B3EC8 #C83E46 #8BC83E #3EC8C0
split-complementary
#7B3EC8 #C8C03E #46C83E
monochromatic
#411F6D #5E2D9C #7B3EC8 #9C6ED6 #BC9DE3

Accessibility & contrast

On white

6.24
#7B3EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7B3EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B3EC8
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3EC8#FFFFFF#000000##FFFFFF
##7B3EC81.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#695F7E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b3ec8;
/* rgb */ color: rgb(123, 62, 200);
/* oklch */ color: oklch(51.4% 0.203 299.4);
Tailwind
colors: {
  custom: {
    50: '#a778da',
    500: '#7b3ec8',
    950: '#000000',
  },
}
SCSS
$custom: #7b3ec8;
$custom-light: #a778da;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3ec8",
  "rgb": {
    "r": 123,
    "g": 62,
    "b": 200
  },
  "hsl": {
    "h": 266.522,
    "s": 55.645,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51447,
    "c": 0.20268,
    "h": 299.4
  },
  "luminance": 0.11826
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B3EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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