#7F4E95#7F4E95

#7F4E95 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 50.9% C 0.121 H 314.6°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7F4E95
RGBrgb(127, 78, 149)
HSLhsl(281, 31%, 45%)
HSVhsv(281, 48%, 58%)
CMYKcmyk(14.8%, 47.7%, 0%, 41.6%)
CIE-LABlab(41.42, 33.65, -30.96)
CIE-LCHlch(41.42, 45.72, 317.38°)
OKLaboklab(50.89% 0.0847 -0.0859)
OKLCHoklch(50.89% 0.121 314.6)
XYZxyz(16.9007, 12.1312, 29.8792)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4E95 #64954E
analogous
#5B4E95 #7F4E95 #954E88
triadic
#7F4E95 #957F4E #4E957F
tetradic
#7F4E95 #955B4E #64954E #4E8895
square
#7F4E95 #955B4E #64954E #4E8895
split-complementary
#7F4E95 #88954E #4E955B
monochromatic
#3B2445 #5D396D #7F4E95 #9D6DB3 #B896C8

Accessibility & contrast

On white

6.13
#7F4E95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7F4E95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4E95
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4E95#FFFFFF#000000##FFFFFF
##7F4E951.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405F97
Deuteranopia (green-blind)
#4D6393
Tritanopia (blue-blind)
#7E586A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f4e95;
/* rgb */ color: rgb(127, 78, 149);
/* oklch */ color: oklch(50.9% 0.121 314.6);
Tailwind
colors: {
  custom: {
    50: '#a681b4',
    500: '#7f4e95',
    950: '#000000',
  },
}
SCSS
$custom: #7f4e95;
$custom-light: #a681b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4e95",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 281.408,
    "s": 31.278,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50888,
    "c": 0.12069,
    "h": 314.6
  },
  "luminance": 0.12131
}

Semantic roles & 50–950 ramp

primary
#7F4E95
secondary
#97B48A
accent
#C76080
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7F4E95

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

Preview Lab → · Contrast checker → · Palette generator →

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