#7F47BA#7F47BA

#7F47BA is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.1% C 0.176 H 303.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7F47BA
RGBrgb(127, 71, 186)
HSLhsl(269, 45%, 50%)
HSVhsv(269, 62%, 73%)
CMYKcmyk(31.7%, 61.8%, 0%, 27.1%)
CIE-LABlab(42.10, 46.31, -51.86)
CIE-LCHlch(42.10, 69.52, 311.76°)
OKLaboklab(52.08% 0.0963 -0.1469)
OKLCHoklch(52.08% 0.176 303.2)
XYZxyz(19.8665, 12.5637, 47.8233)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F47BA #82BA47
analogous
#4748BA #7F47BA #B847BA
triadic
#7F47BA #BA7F47 #47BA7F
tetradic
#7F47BA #BA4748 #82BA47 #47BAB8
square
#7F47BA #BA4748 #82BA47 #47BAB8
split-complementary
#7F47BA #BAB847 #48BA47
monochromatic
#432562 #61358E #7F47BA #9E74CB #BDA0DB

Accessibility & contrast

On white

5.98
#7F47BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7F47BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F47BA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F47BA#FFFFFF#000000##FFFFFF
##7F47BA1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f47ba;
/* rgb */ color: rgb(127, 71, 186);
/* oklch */ color: oklch(52.1% 0.176 303.2);
Tailwind
colors: {
  custom: {
    50: '#a87dcf',
    500: '#7f47ba',
    950: '#000000',
  },
}
SCSS
$custom: #7f47ba;
$custom-light: #a87dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f47ba",
  "rgb": {
    "r": 127,
    "g": 71,
    "b": 186
  },
  "hsl": {
    "h": 269.217,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52077,
    "c": 0.17566,
    "h": 303.2
  },
  "luminance": 0.12564
}

Semantic roles & 50–950 ramp

primary
#7F47BA
secondary
#AFC895
accent
#D55396
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F47BA

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

Preview Lab → · Contrast checker → · Palette generator →

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