#7B47C2#7B47C2

#7B47C2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.2% C 0.184 H 299.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7B47C2
RGBrgb(123, 71, 194)
HSLhsl(265, 50%, 52%)
HSVhsv(265, 63%, 76%)
CMYKcmyk(36.6%, 63.4%, 0%, 23.9%)
CIE-LABlab(42.17, 47.42, -56.43)
CIE-LCHlch(42.17, 73.71, 310.04°)
OKLaboklab(52.2% 0.0904 -0.1605)
OKLCHoklch(52.2% 0.184 299.4)
XYZxyz(20.1568, 12.6123, 52.4009)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B47C2 #8EC247
analogous
#4751C2 #7B47C2 #B947C2
triadic
#7B47C2 #C27B47 #47C27B
tetradic
#7B47C2 #C24751 #8EC247 #47C2B9
square
#7B47C2 #C24751 #8EC247 #47C2B9
split-complementary
#7B47C2 #C2B947 #51C247
monochromatic
#42246B #5E3399 #7B47C2 #9C75D1 #BDA3E0

Accessibility & contrast

On white

5.96
#7B47C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7B47C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B47C2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B47C2#FFFFFF#000000##FFFFFF
##7B47C21.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0D62BF
Tritanopia (blue-blind)
#6B627E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b47c2;
/* rgb */ color: rgb(123, 71, 194);
/* oklch */ color: oklch(52.2% 0.184 299.4);
Tailwind
colors: {
  custom: {
    50: '#a67dd5',
    500: '#7b47c2',
    950: '#000000',
  },
}
SCSS
$custom: #7b47c2;
$custom-light: #a67dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b47c2",
  "rgb": {
    "r": 123,
    "g": 71,
    "b": 194
  },
  "hsl": {
    "h": 265.366,
    "s": 50.204,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52198,
    "c": 0.18422,
    "h": 299.4
  },
  "luminance": 0.12612
}

Semantic roles & 50–950 ramp

primary
#7B47C2
secondary
#B7CD97
accent
#DA4E9F
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7B47C2

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

Preview Lab → · Contrast checker → · Palette generator →

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