#7F339C#7F339C

#7F339C is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.4% C 0.172 H 315.2°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#7F339C
RGBrgb(127, 51, 156)
HSLhsl(283, 51%, 41%)
HSVhsv(283, 67%, 61%)
CMYKcmyk(18.6%, 67.3%, 0%, 38.8%)
CIE-LABlab(36.52, 49.33, -42.97)
CIE-LCHlch(36.52, 65.42, 318.94°)
OKLaboklab(47.42% 0.1218 -0.1208)
OKLCHoklch(47.42% 0.172 315.2)
XYZxyz(15.9360, 9.2805, 32.3979)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F339C #509C33
analogous
#4B339C #7F339C #9C3384
triadic
#7F339C #9C7F33 #339C7F
tetradic
#7F339C #9C4B33 #509C33 #33849C
square
#7F339C #9C4B33 #509C33 #33849C
split-complementary
#7F339C #849C33 #339C4B
monochromatic
#341540 #59246E #7F339C #A249C3 #B977D3

Accessibility & contrast

On white

7.35
#7F339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F339C
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F339C#FFFFFF#000000##FFFFFF
##7F339C1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519F
Deuteranopia (green-blind)
#31589A
Tritanopia (blue-blind)
#7D4763
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f339c;
/* rgb */ color: rgb(127, 51, 156);
/* oklch */ color: oklch(47.4% 0.172 315.2);
Tailwind
colors: {
  custom: {
    50: '#a770ba',
    500: '#7f339c',
    950: '#000000',
  },
}
SCSS
$custom: #7f339c;
$custom-light: #a770ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f339c",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 283.429,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47422,
    "c": 0.17152,
    "h": 315.2
  },
  "luminance": 0.0928
}

Semantic roles & 50–950 ramp

primary
#7F339C
secondary
#85BB70
accent
#DA4E74
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F339C

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

Preview Lab → · Contrast checker → · Palette generator →

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