#7F348C#7F348C

#7F348C is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.5% C 0.154 H 321.5°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7F348C
RGBrgb(127, 52, 140)
HSLhsl(291, 46%, 38%)
HSVhsv(291, 63%, 55%)
CMYKcmyk(9.3%, 62.9%, 0%, 45.1%)
CIE-LABlab(35.72, 45.55, -34.50)
CIE-LCHlch(35.72, 57.14, 322.86°)
OKLaboklab(46.53% 0.1207 -0.096)
OKLCHoklch(46.53% 0.154 321.5)
XYZxyz(14.7135, 8.8622, 25.7414)
Luminance0.0886 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F348C #418C34
analogous
#53348C #7F348C #8C346D
triadic
#7F348C #8C7F34 #348C7F
tetradic
#7F348C #8C5334 #418C34 #346D8C
square
#7F348C #8C5334 #418C34 #346D8C
split-complementary
#7F348C #6D8C34 #348C53
monochromatic
#2E1333 #57235F #7F348C #A745B9 #BD70CA

Accessibility & contrast

On white

7.58
#7F348C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7F348C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F348C
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F348C#FFFFFF#000000##FFFFFF
##7F348C1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F8F
Deuteranopia (green-blind)
#3E578A
Tritanopia (blue-blind)
#80425B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f348c;
/* rgb */ color: rgb(127, 52, 140);
/* oklch */ color: oklch(46.5% 0.154 321.5);
Tailwind
colors: {
  custom: {
    50: '#a771ae',
    500: '#7f348c',
    950: '#000000',
  },
}
SCSS
$custom: #7f348c;
$custom-light: #a771ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f348c",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 140
  },
  "hsl": {
    "h": 291.136,
    "s": 45.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46531,
    "c": 0.15423,
    "h": 321.5
  },
  "luminance": 0.08861
}

Semantic roles & 50–950 ramp

primary
#7F348C
secondary
#74B26A
accent
#D55266
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F348C

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

Preview Lab → · Contrast checker → · Palette generator →

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