#7A47BC#7A47BC

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

Color values

HEX#7A47BC
RGBrgb(122, 71, 188)
HSLhsl(266, 47%, 51%)
HSVhsv(266, 62%, 74%)
CMYKcmyk(35.1%, 62.2%, 0%, 26.3%)
CIE-LABlab(41.65, 45.67, -53.78)
CIE-LCHlch(41.65, 70.56, 310.34°)
OKLaboklab(51.66% 0.0895 -0.1527)
OKLCHoklch(51.66% 0.177 300.4)
XYZxyz(19.3542, 12.2748, 48.9168)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A47BC #89BC47
analogous
#474EBC #7A47BC #B547BC
triadic
#7A47BC #BC7A47 #47BC7A
tetradic
#7A47BC #BC474E #89BC47 #47BCB5
square
#7A47BC #BC474E #89BC47 #47BCB5
split-complementary
#7A47BC #BCB547 #4EBC47
monochromatic
#402464 #5D3591 #7A47BC #9A74CC #BBA1DD

Accessibility & contrast

On white

6.08
#7A47BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7A47BC
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A47BC#FFFFFF#000000##FFFFFF
##7A47BC1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#1B61B9
Tritanopia (blue-blind)
#6C607B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a47bc;
/* rgb */ color: rgb(122, 71, 188);
/* oklch */ color: oklch(51.7% 0.177 300.4);
Tailwind
colors: {
  custom: {
    50: '#a57dd1',
    500: '#7a47bc',
    950: '#000000',
  },
}
SCSS
$custom: #7a47bc;
$custom-light: #a57dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a47bc",
  "rgb": {
    "r": 122,
    "g": 71,
    "b": 188
  },
  "hsl": {
    "h": 266.154,
    "s": 46.614,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51663,
    "c": 0.17701,
    "h": 300.4
  },
  "luminance": 0.12275
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A47BC

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

Preview Lab → · Contrast checker → · Palette generator →

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