#7F3398#7F3398

#7F3398 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.168 H 316.7°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7F3398
RGBrgb(127, 51, 152)
HSLhsl(285, 50%, 40%)
HSVhsv(285, 66%, 60%)
CMYKcmyk(16.4%, 66.4%, 0%, 40.4%)
CIE-LABlab(36.27, 48.49, -40.95)
CIE-LCHlch(36.27, 63.47, 319.82°)
OKLaboklab(47.16% 0.122 -0.1148)
OKLCHoklch(47.16% 0.168 316.7)
XYZxyz(15.6029, 9.1473, 30.6434)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3398 #4C9833
analogous
#4D3398 #7F3398 #98337E
triadic
#7F3398 #987F33 #33987F
tetradic
#7F3398 #984D33 #4C9833 #337E98
square
#7F3398 #984D33 #4C9833 #337E98
split-complementary
#7F3398 #7E9833 #33984D
monochromatic
#32143C #59246A #7F3398 #A347C1 #BA75D1

Accessibility & contrast

On white

7.42
#7F3398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7F3398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3398
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3398#FFFFFF#000000##FFFFFF
##7F33981.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09519B
Deuteranopia (green-blind)
#345896
Tritanopia (blue-blind)
#7E4661
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f3398;
/* rgb */ color: rgb(127, 51, 152);
/* oklch */ color: oklch(47.2% 0.168 316.7);
Tailwind
colors: {
  custom: {
    50: '#a770b7',
    500: '#7f3398',
    950: '#000000',
  },
}
SCSS
$custom: #7f3398;
$custom-light: #a770b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3398",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 285.149,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47159,
    "c": 0.16753,
    "h": 316.7
  },
  "luminance": 0.09147
}

Semantic roles & 50–950 ramp

primary
#7F3398
secondary
#80B96E
accent
#D94F71
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F3398

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

Preview Lab → · Contrast checker → · Palette generator →

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