#7F3397#7F3397

#7F3397 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.1% C 0.167 H 317.1°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7F3397
RGBrgb(127, 51, 151)
HSLhsl(286, 50%, 40%)
HSVhsv(286, 66%, 59%)
CMYKcmyk(15.9%, 66.2%, 0%, 40.8%)
CIE-LABlab(36.20, 48.28, -40.44)
CIE-LCHlch(36.20, 62.98, 320.05°)
OKLaboklab(47.09% 0.122 -0.1134)
OKLCHoklch(47.09% 0.167 317.1)
XYZxyz(15.5213, 9.1147, 30.2139)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3397 #4B9733
analogous
#4D3397 #7F3397 #97337D
triadic
#7F3397 #977F33 #33977F
tetradic
#7F3397 #974D33 #4B9733 #337D97
square
#7F3397 #974D33 #4B9733 #337D97
split-complementary
#7F3397 #7D9733 #33974D
monochromatic
#32143C #592469 #7F3397 #A347C1 #BA74D0

Accessibility & contrast

On white

7.44
#7F3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7F3397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3397
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3397#FFFFFF#000000##FFFFFF
##7F33971.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C509A
Deuteranopia (green-blind)
#355795
Tritanopia (blue-blind)
#7E4560
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f3397;
/* rgb */ color: rgb(127, 51, 151);
/* oklch */ color: oklch(47.1% 0.167 317.1);
Tailwind
colors: {
  custom: {
    50: '#a770b6',
    500: '#7f3397',
    950: '#000000',
  },
}
SCSS
$custom: #7f3397;
$custom-light: #a770b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3397",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 285.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47094,
    "c": 0.16653,
    "h": 317.1
  },
  "luminance": 0.09114
}

Semantic roles & 50–950 ramp

primary
#7F3397
secondary
#7FB86D
accent
#D94F70
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F3397

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

Preview Lab → · Contrast checker → · Palette generator →

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