#7F339F#7F339F

#7F339F is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.6% C 0.175 H 314.2°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7F339F
RGBrgb(127, 51, 159)
HSLhsl(282, 51%, 41%)
HSVhsv(282, 68%, 62%)
CMYKcmyk(20.1%, 67.9%, 0%, 37.6%)
CIE-LABlab(36.71, 49.98, -44.47)
CIE-LCHlch(36.71, 66.90, 318.33°)
OKLaboklab(47.62% 0.1216 -0.1252)
OKLCHoklch(47.62% 0.175 314.2)
XYZxyz(16.1932, 9.3834, 33.7523)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F339F #539F33
analogous
#49339F #7F339F #9F3389
triadic
#7F339F #9F7F33 #339F7F
tetradic
#7F339F #9F4933 #539F33 #33899F
square
#7F339F #9F4933 #539F33 #33899F
split-complementary
#7F339F #899F33 #339F49
monochromatic
#351542 #5A2471 #7F339F #A14AC5 #B979D4

Accessibility & contrast

On white

7.30
#7F339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7F339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F339F
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F339F#FFFFFF#000000##FFFFFF
##7F339F1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A2
Deuteranopia (green-blind)
#2E589D
Tritanopia (blue-blind)
#7C4865
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f339f;
/* rgb */ color: rgb(127, 51, 159);
/* oklch */ color: oklch(47.6% 0.175 314.2);
Tailwind
colors: {
  custom: {
    50: '#a771bc',
    500: '#7f339f',
    950: '#000000',
  },
}
SCSS
$custom: #7f339f;
$custom-light: #a771bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f339f",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 282.222,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47623,
    "c": 0.17452,
    "h": 314.2
  },
  "luminance": 0.09383
}

Semantic roles & 50–950 ramp

primary
#7F339F
secondary
#88BC71
accent
#DB4D77
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F339F

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

Preview Lab → · Contrast checker → · Palette generator →

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