#7A47CB#7A47CB

#7A47CB is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.8% C 0.195 H 297.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7A47CB
RGBrgb(122, 71, 203)
HSLhsl(263, 56%, 54%)
HSVhsv(263, 65%, 80%)
CMYKcmyk(39.9%, 65%, 0%, 20.4%)
CIE-LABlab(42.70, 49.54, -60.81)
CIE-LCHlch(42.70, 78.44, 309.17°)
OKLaboklab(52.75% 0.0882 -0.1734)
OKLCHoklch(52.75% 0.195 297)
XYZxyz(21.0560, 12.9555, 57.8796)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A47CB #98CB47
analogous
#4756CB #7A47CB #BC47CB
triadic
#7A47CB #CB7A47 #47CB7A
tetradic
#7A47CB #CB4756 #98CB47 #47CBBC
square
#7A47CB #CB4756 #98CB47 #47CBBC
split-complementary
#7A47CB #CBBC47 #56CB47
monochromatic
#422176 #5D2FA6 #7A47CB #9C77D8 #BFA6E6

Accessibility & contrast

On white

5.85
#7A47CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7A47CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A47CB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A47CB#FFFFFF#000000##FFFFFF
##7A47CB1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#666683
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7a47cb;
/* rgb */ color: rgb(122, 71, 203);
/* oklch */ color: oklch(52.8% 0.195 297.0);
Tailwind
colors: {
  custom: {
    50: '#a67ddc',
    500: '#7a47cb',
    950: '#000000',
  },
}
SCSS
$custom: #7a47cb;
$custom-light: #a67ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a47cb",
  "rgb": {
    "r": 122,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 263.182,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52751,
    "c": 0.19456,
    "h": 297
  },
  "luminance": 0.12956
}

Semantic roles & 50–950 ramp

primary
#7A47CB
secondary
#BDD39B
accent
#DF49A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7A47CB

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

Preview Lab → · Contrast checker → · Palette generator →

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