#7F339E#7F339E

#7F339E is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.174 H 314.5°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7F339E
RGBrgb(127, 51, 158)
HSLhsl(283, 51%, 41%)
HSVhsv(283, 68%, 62%)
CMYKcmyk(19.6%, 67.7%, 0%, 38%)
CIE-LABlab(36.65, 49.76, -43.97)
CIE-LCHlch(36.65, 66.41, 318.53°)
OKLaboklab(47.56% 0.1217 -0.1237)
OKLCHoklch(47.56% 0.174 314.5)
XYZxyz(16.1068, 9.3488, 33.2972)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F339E #529E33
analogous
#49339E #7F339E #9E3387
triadic
#7F339E #9E7F33 #339E7F
tetradic
#7F339E #9E4933 #529E33 #33879E
square
#7F339E #9E4933 #529E33 #33879E
split-complementary
#7F339E #879E33 #339E49
monochromatic
#351541 #5A2470 #7F339E #A14AC4 #B978D3

Accessibility & contrast

On white

7.32
#7F339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7F339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F339E
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F339E#FFFFFF#000000##FFFFFF
##7F339E1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A1
Deuteranopia (green-blind)
#2F589C
Tritanopia (blue-blind)
#7C4864
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f339e;
/* rgb */ color: rgb(127, 51, 158);
/* oklch */ color: oklch(47.6% 0.174 314.5);
Tailwind
colors: {
  custom: {
    50: '#a771bb',
    500: '#7f339e',
    950: '#000000',
  },
}
SCSS
$custom: #7f339e;
$custom-light: #a771bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f339e",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 282.617,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47556,
    "c": 0.17352,
    "h": 314.5
  },
  "luminance": 0.09348
}

Semantic roles & 50–950 ramp

primary
#7F339E
secondary
#87BC71
accent
#DB4D76
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F339E

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

Preview Lab → · Contrast checker → · Palette generator →

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