#7B4EC2#7B4EC2

#7B4EC2 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.2% C 0.174 H 298.1°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#7B4EC2
RGBrgb(123, 78, 194)
HSLhsl(263, 49%, 53%)
HSVhsv(263, 60%, 76%)
CMYKcmyk(36.6%, 59.8%, 0%, 23.9%)
CIE-LABlab(43.59, 43.63, -54.15)
CIE-LCHlch(43.59, 69.54, 308.86°)
OKLaboklab(53.23% 0.0822 -0.1538)
OKLCHoklch(53.23% 0.174 298.1)
XYZxyz(20.6279, 13.5545, 52.5580)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4EC2 #95C24E
analogous
#4E5BC2 #7B4EC2 #B54EC2
triadic
#7B4EC2 #C27B4E #4EC27B
tetradic
#7B4EC2 #C24E5B #95C24E #4EC2B5
square
#7B4EC2 #C24E5B #95C24E #4EC2B5
split-complementary
#7B4EC2 #C2B54E #5BC24E
monochromatic
#43266F #5E369D #7B4EC2 #9D7CD2 #BFA9E1

Accessibility & contrast

On white

5.66
#7B4EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#7B4EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4EC2
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4EC2#FFFFFF#000000##FFFFFF
##7B4EC21.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#2166BF
Tritanopia (blue-blind)
#6B6780
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7b4ec2;
/* rgb */ color: rgb(123, 78, 194);
/* oklch */ color: oklch(53.2% 0.174 298.1);
Tailwind
colors: {
  custom: {
    50: '#a681d5',
    500: '#7b4ec2',
    950: '#000000',
  },
}
SCSS
$custom: #7b4ec2;
$custom-light: #a681d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4ec2",
  "rgb": {
    "r": 123,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 263.276,
    "s": 48.739,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53226,
    "c": 0.1744,
    "h": 298.1
  },
  "luminance": 0.13555
}

Semantic roles & 50–950 ramp

primary
#7B4EC2
secondary
#BBCF9D
accent
#D850A3
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7B4EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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