#7F348E#7F348E

#7F348E is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.7% C 0.156 H 320.6°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7F348E
RGBrgb(127, 52, 142)
HSLhsl(290, 46%, 38%)
HSVhsv(290, 63%, 56%)
CMYKcmyk(10.6%, 63.4%, 0%, 44.3%)
CIE-LABlab(35.83, 45.95, -35.54)
CIE-LCHlch(35.83, 58.09, 322.28°)
OKLaboklab(46.65% 0.1207 -0.0991)
OKLCHoklch(46.65% 0.156 320.6)
XYZxyz(14.8623, 8.9217, 26.5251)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F348E #438E34
analogous
#52348E #7F348E #8E3470
triadic
#7F348E #8E7F34 #348E7F
tetradic
#7F348E #8E5234 #438E34 #34708E
square
#7F348E #8E5234 #438E34 #34708E
split-complementary
#7F348E #708E34 #348E52
monochromatic
#2F1334 #572461 #7F348E #A744BB #BC71CB

Accessibility & contrast

On white

7.54
#7F348E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F348E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F348E
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F348E#FFFFFF#000000##FFFFFF
##7F348E1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4F91
Deuteranopia (green-blind)
#3C578C
Tritanopia (blue-blind)
#80425C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f348e;
/* rgb */ color: rgb(127, 52, 142);
/* oklch */ color: oklch(46.7% 0.156 320.6);
Tailwind
colors: {
  custom: {
    50: '#a771af',
    500: '#7f348e',
    950: '#000000',
  },
}
SCSS
$custom: #7f348e;
$custom-light: #a771af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f348e",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 142
  },
  "hsl": {
    "h": 290,
    "s": 46.392,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46652,
    "c": 0.15618,
    "h": 320.6
  },
  "luminance": 0.08921
}

Semantic roles & 50–950 ramp

primary
#7F348E
secondary
#77B36A
accent
#D65268
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F348E

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

Preview Lab → · Contrast checker → · Palette generator →

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