#7F339D#7F339D

#7F339D is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.5% C 0.173 H 314.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7F339D
RGBrgb(127, 51, 157)
HSLhsl(283, 51%, 41%)
HSVhsv(283, 68%, 62%)
CMYKcmyk(19.1%, 67.5%, 0%, 38.4%)
CIE-LABlab(36.58, 49.55, -43.47)
CIE-LCHlch(36.58, 65.92, 318.74°)
OKLaboklab(47.49% 0.1218 -0.1222)
OKLCHoklch(47.49% 0.173 314.9)
XYZxyz(16.0210, 9.3145, 32.8457)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F339D #519D33
analogous
#4A339D #7F339D #9D3386
triadic
#7F339D #9D7F33 #339D7F
tetradic
#7F339D #9D4A33 #519D33 #33869D
square
#7F339D #9D4A33 #519D33 #33869D
split-complementary
#7F339D #869D33 #339D4A
monochromatic
#341541 #5A246F #7F339D #A149C4 #B977D3

Accessibility & contrast

On white

7.34
#7F339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7F339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F339D
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F339D#FFFFFF#000000##FFFFFF
##7F339D1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#30589B
Tritanopia (blue-blind)
#7D4864
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f339d;
/* rgb */ color: rgb(127, 51, 157);
/* oklch */ color: oklch(47.5% 0.173 314.9);
Tailwind
colors: {
  custom: {
    50: '#a771ba',
    500: '#7f339d',
    950: '#000000',
  },
}
SCSS
$custom: #7f339d;
$custom-light: #a771ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f339d",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 283.019,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47489,
    "c": 0.17252,
    "h": 314.9
  },
  "luminance": 0.09314
}

Semantic roles & 50–950 ramp

primary
#7F339D
secondary
#86BB70
accent
#DA4D75
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F339D

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

Preview Lab → · Contrast checker → · Palette generator →

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