#7A47BD#7A47BD

#7A47BD is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.7% C 0.178 H 300.1°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7A47BD
RGBrgb(122, 71, 189)
HSLhsl(266, 47%, 51%)
HSVhsv(266, 62%, 74%)
CMYKcmyk(35.4%, 62.4%, 0%, 25.9%)
CIE-LABlab(41.72, 45.93, -54.26)
CIE-LCHlch(41.72, 71.08, 310.25°)
OKLaboklab(51.73% 0.0894 -0.1541)
OKLCHoklch(51.73% 0.178 300.1)
XYZxyz(19.4624, 12.3180, 49.4865)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A47BD #8ABD47
analogous
#474FBD #7A47BD #B547BD
triadic
#7A47BD #BD7A47 #47BD7A
tetradic
#7A47BD #BD474F #8ABD47 #47BDB5
square
#7A47BD #BD474F #8ABD47 #47BDB5
split-complementary
#7A47BD #BDB547 #4FBD47
monochromatic
#402465 #5D3492 #7A47BD #9B74CD #BBA1DD

Accessibility & contrast

On white

6.06
#7A47BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7A47BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A47BD
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A47BD#FFFFFF#000000##FFFFFF
##7A47BD1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#1962BA
Tritanopia (blue-blind)
#6C617B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a47bd;
/* rgb */ color: rgb(122, 71, 189);
/* oklch */ color: oklch(51.7% 0.178 300.1);
Tailwind
colors: {
  custom: {
    50: '#a57dd2',
    500: '#7a47bd',
    950: '#000000',
  },
}
SCSS
$custom: #7a47bd;
$custom-light: #a57dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a47bd",
  "rgb": {
    "r": 122,
    "g": 71,
    "b": 189
  },
  "hsl": {
    "h": 265.932,
    "s": 47.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51733,
    "c": 0.17819,
    "h": 300.1
  },
  "luminance": 0.12318
}

Semantic roles & 50–950 ramp

primary
#7A47BD
secondary
#B3CA96
accent
#D7519D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7A47BD

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

Preview Lab → · Contrast checker → · Palette generator →

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