#7D47BA#7D47BA

#7D47BA is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.9% C 0.175 H 302.3°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7D47BA
RGBrgb(125, 71, 186)
HSLhsl(268, 45%, 50%)
HSVhsv(268, 62%, 73%)
CMYKcmyk(32.8%, 61.8%, 0%, 27.1%)
CIE-LABlab(41.86, 45.85, -52.25)
CIE-LCHlch(41.86, 69.51, 311.27°)
OKLaboklab(51.85% 0.0936 -0.1481)
OKLCHoklch(51.85% 0.175 302.3)
XYZxyz(19.5715, 12.4116, 47.8094)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D47BA #84BA47
analogous
#474ABA #7D47BA #B747BA
triadic
#7D47BA #BA7D47 #47BA7D
tetradic
#7D47BA #BA474A #84BA47 #47BAB7
square
#7D47BA #BA474A #84BA47 #47BAB7
split-complementary
#7D47BA #BAB747 #4ABA47
monochromatic
#412562 #5F358E #7D47BA #9C74CB #BCA0DB

Accessibility & contrast

On white

6.03
#7D47BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7D47BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D47BA
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D47BA#FFFFFF#000000##FFFFFF
##7D47BA1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#2462B7
Tritanopia (blue-blind)
#715F7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d47ba;
/* rgb */ color: rgb(125, 71, 186);
/* oklch */ color: oklch(51.9% 0.175 302.3);
Tailwind
colors: {
  custom: {
    50: '#a77dcf',
    500: '#7d47ba',
    950: '#000000',
  },
}
SCSS
$custom: #7d47ba;
$custom-light: #a77dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d47ba",
  "rgb": {
    "r": 125,
    "g": 71,
    "b": 186
  },
  "hsl": {
    "h": 268.174,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51853,
    "c": 0.17524,
    "h": 302.3
  },
  "luminance": 0.12412
}

Semantic roles & 50–950 ramp

primary
#7D47BA
secondary
#B0C895
accent
#D55398
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7D47BA

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

Preview Lab → · Contrast checker → · Palette generator →

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