#7A47BB#7A47BB

#7A47BB is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.6% C 0.176 H 300.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7A47BB
RGBrgb(122, 71, 187)
HSLhsl(266, 46%, 51%)
HSVhsv(266, 62%, 73%)
CMYKcmyk(34.8%, 62%, 0%, 26.7%)
CIE-LABlab(41.58, 45.41, -53.31)
CIE-LCHlch(41.58, 70.03, 310.43°)
OKLaboklab(51.59% 0.0895 -0.1514)
OKLCHoklch(51.59% 0.176 300.6)
XYZxyz(19.2468, 12.2318, 48.3510)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A47BB #88BB47
analogous
#474EBB #7A47BB #B447BB
triadic
#7A47BB #BB7A47 #47BB7A
tetradic
#7A47BB #BB474E #88BB47 #47BBB4
square
#7A47BB #BB474E #88BB47 #47BBB4
split-complementary
#7A47BB #BBB447 #4EBB47
monochromatic
#402563 #5D3590 #7A47BB #9A74CC #BBA0DC

Accessibility & contrast

On white

6.09
#7A47BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7A47BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A47BB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A47BB#FFFFFF#000000##FFFFFF
##7A47BB1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#1D61B8
Tritanopia (blue-blind)
#6C607A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a47bb;
/* rgb */ color: rgb(122, 71, 187);
/* oklch */ color: oklch(51.6% 0.176 300.6);
Tailwind
colors: {
  custom: {
    50: '#a57dd0',
    500: '#7a47bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a47bb;
$custom-light: #a57dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a47bb",
  "rgb": {
    "r": 122,
    "g": 71,
    "b": 187
  },
  "hsl": {
    "h": 266.379,
    "s": 46.032,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51592,
    "c": 0.17583,
    "h": 300.6
  },
  "luminance": 0.12232
}

Semantic roles & 50–950 ramp

primary
#7A47BB
secondary
#B2C995
accent
#D6529C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7A47BB

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

Preview Lab → · Contrast checker → · Palette generator →

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