#7A47BA#7A47BA

#7A47BA is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.5% C 0.175 H 300.8°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7A47BA
RGBrgb(122, 71, 186)
HSLhsl(267, 45%, 50%)
HSVhsv(267, 62%, 73%)
CMYKcmyk(34.4%, 61.8%, 0%, 27.1%)
CIE-LABlab(41.52, 45.16, -52.83)
CIE-LCHlch(41.52, 69.50, 310.53°)
OKLaboklab(51.52% 0.0896 -0.1499)
OKLCHoklch(51.52% 0.175 300.8)
XYZxyz(19.1401, 12.1891, 47.7892)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A47BA #87BA47
analogous
#474DBA #7A47BA #B447BA
triadic
#7A47BA #BA7A47 #47BA7A
tetradic
#7A47BA #BA474D #87BA47 #47BAB4
square
#7A47BA #BA474D #87BA47 #47BAB4
split-complementary
#7A47BA #BAB447 #4DBA47
monochromatic
#402562 #5D358E #7A47BA #9A74CB #BAA0DB

Accessibility & contrast

On white

6.11
#7A47BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7A47BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A47BA
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A47BA#FFFFFF#000000##FFFFFF
##7A47BA1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#1F61B7
Tritanopia (blue-blind)
#6D607A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a47ba;
/* rgb */ color: rgb(122, 71, 186);
/* oklch */ color: oklch(51.5% 0.175 300.8);
Tailwind
colors: {
  custom: {
    50: '#a57dcf',
    500: '#7a47ba',
    950: '#000000',
  },
}
SCSS
$custom: #7a47ba;
$custom-light: #a57dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a47ba",
  "rgb": {
    "r": 122,
    "g": 71,
    "b": 186
  },
  "hsl": {
    "h": 266.609,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51522,
    "c": 0.17466,
    "h": 300.8
  },
  "luminance": 0.12189
}

Semantic roles & 50–950 ramp

primary
#7A47BA
secondary
#B1C895
accent
#D5539B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7A47BA

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

Preview Lab → · Contrast checker → · Palette generator →

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