#7F3797#7F3797

#7F3797 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.6% C 0.161 H 316.7°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7F3797
RGBrgb(127, 55, 151)
HSLhsl(285, 47%, 40%)
HSVhsv(285, 64%, 59%)
CMYKcmyk(15.9%, 63.6%, 0%, 40.8%)
CIE-LABlab(36.89, 46.38, -39.35)
CIE-LCHlch(36.89, 60.82, 319.69°)
OKLaboklab(47.59% 0.1171 -0.1102)
OKLCHoklch(47.59% 0.161 316.7)
XYZxyz(15.7037, 9.4794, 30.2746)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3797 #4F9737
analogous
#4F3797 #7F3797 #97377F
triadic
#7F3797 #977F37 #37977F
tetradic
#7F3797 #974F37 #4F9737 #377F97
square
#7F3797 #974F37 #4F9737 #377F97
split-complementary
#7F3797 #7F9737 #37974F
monochromatic
#34163D #59276A #7F3797 #A24DBE #B97ACF

Accessibility & contrast

On white

7.25
#7F3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7F3797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3797
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3797#FFFFFF#000000##FFFFFF
##7F37971.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18529A
Deuteranopia (green-blind)
#395995
Tritanopia (blue-blind)
#7E4862
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f3797;
/* rgb */ color: rgb(127, 55, 151);
/* oklch */ color: oklch(47.6% 0.161 316.7);
Tailwind
colors: {
  custom: {
    50: '#a773b6',
    500: '#7f3797',
    950: '#000000',
  },
}
SCSS
$custom: #7f3797;
$custom-light: #a773b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3797",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 285,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47591,
    "c": 0.16075,
    "h": 316.7
  },
  "luminance": 0.09479
}

Semantic roles & 50–950 ramp

primary
#7F3797
secondary
#84B872
accent
#D65273
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F3797

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

Preview Lab → · Contrast checker → · Palette generator →

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