#7F3399#7F3399

#7F3399 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.2% C 0.169 H 316.3°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7F3399
RGBrgb(127, 51, 153)
HSLhsl(285, 50%, 40%)
HSVhsv(285, 67%, 60%)
CMYKcmyk(17%, 66.7%, 0%, 40%)
CIE-LABlab(36.33, 48.70, -41.46)
CIE-LCHlch(36.33, 63.96, 319.59°)
OKLaboklab(47.22% 0.1219 -0.1163)
OKLCHoklch(47.22% 0.169 316.3)
XYZxyz(15.6851, 9.1802, 31.0765)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3399 #4D9933
analogous
#4C3399 #7F3399 #993380
triadic
#7F3399 #997F33 #33997F
tetradic
#7F3399 #994C33 #4D9933 #338099
square
#7F3399 #994C33 #4D9933 #338099
split-complementary
#7F3399 #809933 #33994C
monochromatic
#33143D #59246B #7F3399 #A347C2 #BA75D1

Accessibility & contrast

On white

7.40
#7F3399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7F3399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3399
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3399#FFFFFF#000000##FFFFFF
##7F33991.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06519C
Deuteranopia (green-blind)
#345897
Tritanopia (blue-blind)
#7E4661
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f3399;
/* rgb */ color: rgb(127, 51, 153);
/* oklch */ color: oklch(47.2% 0.169 316.3);
Tailwind
colors: {
  custom: {
    50: '#a770b7',
    500: '#7f3399',
    950: '#000000',
  },
}
SCSS
$custom: #7f3399;
$custom-light: #a770b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3399",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 284.706,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.47224,
    "c": 0.16852,
    "h": 316.3
  },
  "luminance": 0.0918
}

Semantic roles & 50–950 ramp

primary
#7F3399
secondary
#82B96E
accent
#DA4E72
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F3399

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

Preview Lab → · Contrast checker → · Palette generator →

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