#7F47C2#7F47C2

#7F47C2 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.6% C 0.185 H 301.2°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7F47C2
RGBrgb(127, 71, 194)
HSLhsl(267, 50%, 52%)
HSVhsv(267, 63%, 76%)
CMYKcmyk(34.5%, 63.4%, 0%, 23.9%)
CIE-LABlab(42.63, 48.30, -55.67)
CIE-LCHlch(42.63, 73.70, 310.94°)
OKLaboklab(52.63% 0.0958 -0.1581)
OKLCHoklch(52.63% 0.185 301.2)
XYZxyz(20.7409, 12.9134, 52.4283)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F47C2 #8AC247
analogous
#474DC2 #7F47C2 #BD47C2
triadic
#7F47C2 #C27F47 #47C27F
tetradic
#7F47C2 #C2474D #8AC247 #47C2BD
square
#7F47C2 #C2474D #8AC247 #47C2BD
split-complementary
#7F47C2 #C2BD47 #4DC247
monochromatic
#44246B #613399 #7F47C2 #9F75D1 #BFA3E0

Accessibility & contrast

On white

5.86
#7F47C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7F47C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F47C2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F47C2#FFFFFF#000000##FFFFFF
##7F47C21.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#1864BF
Tritanopia (blue-blind)
#71627E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f47c2;
/* rgb */ color: rgb(127, 71, 194);
/* oklch */ color: oklch(52.6% 0.185 301.2);
Tailwind
colors: {
  custom: {
    50: '#a97dd5',
    500: '#7f47c2',
    950: '#000000',
  },
}
SCSS
$custom: #7f47c2;
$custom-light: #a97dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f47c2",
  "rgb": {
    "r": 127,
    "g": 71,
    "b": 194
  },
  "hsl": {
    "h": 267.317,
    "s": 50.204,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52634,
    "c": 0.18489,
    "h": 301.2
  },
  "luminance": 0.12914
}

Semantic roles & 50–950 ramp

primary
#7F47C2
secondary
#B5CD97
accent
#DA4E9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F47C2

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

Preview Lab → · Contrast checker → · Palette generator →

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