#7F4E97#7F4E97

#7F4E97 is a mid, vivid purple. Relative luminance 0.122; OKLCH L 51.0% C 0.123 H 313.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7F4E97
RGBrgb(127, 78, 151)
HSLhsl(280, 32%, 45%)
HSVhsv(280, 48%, 59%)
CMYKcmyk(15.9%, 48.3%, 0%, 40.8%)
CIE-LABlab(41.53, 34.10, -32.00)
CIE-LCHlch(41.53, 46.77, 316.82°)
OKLaboklab(51% 0.085 -0.089)
OKLCHoklch(51% 0.123 313.7)
XYZxyz(17.0618, 12.1956, 30.7274)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4E97 #66974E
analogous
#5A4E97 #7F4E97 #974E8B
triadic
#7F4E97 #977F4E #4E977F
tetradic
#7F4E97 #975A4E #66974E #4E8B97
square
#7F4E97 #975A4E #66974E #4E8B97
split-complementary
#7F4E97 #8B974E #4E975A
monochromatic
#3B2446 #5D396F #7F4E97 #9D6EB4 #B896C9

Accessibility & contrast

On white

6.11
#7F4E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7F4E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4E97
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4E97#FFFFFF#000000##FFFFFF
##7F4E971.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5F9A
Deuteranopia (green-blind)
#4C6395
Tritanopia (blue-blind)
#7D596B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f4e97;
/* rgb */ color: rgb(127, 78, 151);
/* oklch */ color: oklch(51.0% 0.123 313.7);
Tailwind
colors: {
  custom: {
    50: '#a681b6',
    500: '#7f4e97',
    950: '#000000',
  },
}
SCSS
$custom: #7f4e97;
$custom-light: #a681b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4e97",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 280.274,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50996,
    "c": 0.12307,
    "h": 313.7
  },
  "luminance": 0.12195
}

Semantic roles & 50–950 ramp

primary
#7F4E97
secondary
#99B68B
accent
#C86082
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7F4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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