#7F34A3#7F34A3

#7F34A3 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.0% C 0.177 H 312.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7F34A3
RGBrgb(127, 52, 163)
HSLhsl(281, 52%, 42%)
HSVhsv(281, 68%, 64%)
CMYKcmyk(22.1%, 68.1%, 0%, 36.1%)
CIE-LABlab(37.14, 50.39, -46.20)
CIE-LCHlch(37.14, 68.36, 317.48°)
OKLaboklab(48.01% 0.1202 -0.1302)
OKLCHoklch(48.01% 0.177 312.7)
XYZxyz(16.5901, 9.6128, 35.6248)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34A3 #58A334
analogous
#4834A3 #7F34A3 #A3348F
triadic
#7F34A3 #A37F34 #34A37F
tetradic
#7F34A3 #A34834 #58A334 #348FA3
square
#7F34A3 #A34834 #58A334 #348FA3
split-complementary
#7F34A3 #8FA334 #34A348
monochromatic
#371646 #5B2575 #7F34A3 #9F4EC6 #B87CD5

Accessibility & contrast

On white

7.19
#7F34A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7F34A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F34A3
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34A3#FFFFFF#000000##FFFFFF
##7F34A31.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A6
Deuteranopia (green-blind)
#2B59A0
Tritanopia (blue-blind)
#7B4A67
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f34a3;
/* rgb */ color: rgb(127, 52, 163);
/* oklch */ color: oklch(48.0% 0.177 312.7);
Tailwind
colors: {
  custom: {
    50: '#a871bf',
    500: '#7f34a3',
    950: '#000000',
  },
}
SCSS
$custom: #7f34a3;
$custom-light: #a871bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34a3",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 163
  },
  "hsl": {
    "h": 280.541,
    "s": 51.628,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48013,
    "c": 0.17722,
    "h": 312.7
  },
  "luminance": 0.09612
}

Semantic roles & 50–950 ramp

primary
#7F34A3
secondary
#8CBE75
accent
#DB4D7B
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F34A3

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

Preview Lab → · Contrast checker → · Palette generator →

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