#7F3E97#7F3E97

#7F3E97 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 48.5% C 0.150 H 316.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#7F3E97
RGBrgb(127, 62, 151)
HSLhsl(284, 42%, 42%)
HSVhsv(284, 59%, 59%)
CMYKcmyk(15.9%, 58.9%, 0%, 40.8%)
CIE-LABlab(38.19, 42.87, -37.29)
CIE-LCHlch(38.19, 56.81, 318.98°)
OKLaboklab(48.53% 0.1079 -0.1042)
OKLCHoklch(48.53% 0.15 316)
XYZxyz(16.0601, 10.1922, 30.3935)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3E97 #56973E
analogous
#533E97 #7F3E97 #973E83
triadic
#7F3E97 #977F3E #3E977F
tetradic
#7F3E97 #97533E #56973E #3E8397
square
#7F3E97 #97533E #56973E #3E8397
split-complementary
#7F3E97 #83973E #3E9753
monochromatic
#361A40 #5B2C6C #7F3E97 #A058BA #B983CC

Accessibility & contrast

On white

6.91
#7F3E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7F3E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3E97
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3E97#FFFFFF#000000##FFFFFF
##7F3E971.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569A
Deuteranopia (green-blind)
#3E5C95
Tritanopia (blue-blind)
#7E4D64
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f3e97;
/* rgb */ color: rgb(127, 62, 151);
/* oklch */ color: oklch(48.5% 0.150 316.0);
Tailwind
colors: {
  custom: {
    50: '#a677b6',
    500: '#7f3e97',
    950: '#000000',
  },
}
SCSS
$custom: #7f3e97;
$custom-light: #a677b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3e97",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 283.82,
    "s": 41.784,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48532,
    "c": 0.15,
    "h": 316
  },
  "luminance": 0.10192
}

Semantic roles & 50–950 ramp

primary
#7F3E97
secondary
#8BB67A
accent
#D25677
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100911
muted
#7F7B80

Preview Lab

Preview with #7F3E97

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

Preview Lab → · Contrast checker → · Palette generator →

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