#7F3390#7F3390

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

Color values

HEX#7F3390
RGBrgb(127, 51, 144)
HSLhsl(289, 48%, 38%)
HSVhsv(289, 65%, 56%)
CMYKcmyk(11.8%, 64.6%, 0%, 43.5%)
CIE-LABlab(35.78, 46.83, -36.85)
CIE-LCHlch(35.78, 59.59, 321.80°)
OKLaboklab(46.65% 0.1221 -0.1029)
OKLCHoklch(46.65% 0.16 319.9)
XYZxyz(14.9696, 8.8940, 27.3083)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3390 #449033
analogous
#503390 #7F3390 #903372
triadic
#7F3390 #907F33 #33907F
tetradic
#7F3390 #905033 #449033 #337290
square
#7F3390 #905033 #449033 #337290
split-complementary
#7F3390 #729033 #339050
monochromatic
#2F1336 #572363 #7F3390 #A644BD #BC71CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F3390#FFFFFF#000000##FFFFFF
##7F33901.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)
#1A4F93
Deuteranopia (green-blind)
#3A578E
Tritanopia (blue-blind)
#80435D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f3390;
/* rgb */ color: rgb(127, 51, 144);
/* oklch */ color: oklch(46.7% 0.160 319.9);
Tailwind
colors: {
  custom: {
    50: '#a770b1',
    500: '#7f3390',
    950: '#000000',
  },
}
SCSS
$custom: #7f3390;
$custom-light: #a770b1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3390",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 144
  },
  "hsl": {
    "h": 289.032,
    "s": 47.692,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46651,
    "c": 0.15963,
    "h": 319.9
  },
  "luminance": 0.08893
}

Semantic roles & 50–950 ramp

primary
#7F3390
secondary
#78B56A
accent
#D75169
background
#FAF7FA
surface
#F4EDF5
border
#CEC8CF
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F3390

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

Preview Lab → · Contrast checker → · Palette generator →

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