#7F348D#7F348D

#7F348D is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.6% C 0.155 H 321.1°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7F348D
RGBrgb(127, 52, 141)
HSLhsl(291, 46%, 38%)
HSVhsv(291, 63%, 55%)
CMYKcmyk(9.9%, 63.1%, 0%, 44.7%)
CIE-LABlab(35.78, 45.75, -35.02)
CIE-LCHlch(35.78, 57.62, 322.57°)
OKLaboklab(46.59% 0.1207 -0.0975)
OKLCHoklch(46.59% 0.155 321.1)
XYZxyz(14.7876, 8.8918, 26.1315)
Luminance0.0889 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F348D #428D34
analogous
#52348D #7F348D #8D346E
triadic
#7F348D #8D7F34 #348D7F
tetradic
#7F348D #8D5234 #428D34 #346E8D
square
#7F348D #8D5234 #428D34 #346E8D
split-complementary
#7F348D #6E8D34 #348D52
monochromatic
#2E1334 #572460 #7F348D #A744BA #BC71CB

Accessibility & contrast

On white

7.56
#7F348D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F348D
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F348D#FFFFFF#000000##FFFFFF
##7F348D1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4F90
Deuteranopia (green-blind)
#3D578B
Tritanopia (blue-blind)
#80425B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f348d;
/* rgb */ color: rgb(127, 52, 141);
/* oklch */ color: oklch(46.6% 0.155 321.1);
Tailwind
colors: {
  custom: {
    50: '#a771af',
    500: '#7f348d',
    950: '#000000',
  },
}
SCSS
$custom: #7f348d;
$custom-light: #a771af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f348d",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 141
  },
  "hsl": {
    "h": 290.562,
    "s": 46.114,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46591,
    "c": 0.1552,
    "h": 321.1
  },
  "luminance": 0.08891
}

Semantic roles & 50–950 ramp

primary
#7F348D
secondary
#75B36A
accent
#D65267
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F348D

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

Preview Lab → · Contrast checker → · Palette generator →

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